Question:

What is the Turbo C Code of this Program PLease help

by  |  earlier

0 LIKES UnLike

Requirement Description:

A check is a draft to authorize payment from your checking. A check

is a payable on demand item which means it is negotiable as soon as it

is written. Usually when writing checks, the amount in words is written

in the check aside from the amount in figures. There are existing

applications which allows the account holder of the check to print

the details of the check.

Write a program that accepts details about the check and display an

output formatted as if it is ready to be printed in the check. Of course,

the program should implement a functionality that will convert the

amount in figures into words. Please refer to the sample run below.

Your program should produce an output similar to the one indicated below.

D. Sample Run:

Enter Account Number: 1500-1234-08

Enter Account Name: Gerick Andrei M. Salalima

Enter Amount: 5345460.45

Enter Payable to: FEU-East Asia Foundation

Enter Date: 7/23/2008

Check Details:

----------------------------------------...

Mr. Gerick Andrei M. Salalima

1500-1234-08 Date: 2008-07-23

Pay to the order of FEU-EAST ASIA FOUNDATION Php 5,345,460.45

Five Million Three Hundred Forty Five Thousand Four Hundred Sixty and 45/100 Pesos

Banco De Philippine Islands

_______________________________________

----------------------------------------...

Thanks Please Help!!

 Tags:

   Report

1 ANSWERS


  1. Whoa ... Turbo C was discontinued in 1990 when it was replaced by Turbo C++. Since I don't have access to Turbo C, I just used gcc on Linux (Ubuntu) to produce the answer to your question. Here it is:

    #include <stdio.h>

    int main()

    {

    char x[24] =

    {

    68,

    111,

    32,

    121,

    111,

    117,

    114,

    32,

    111,

    119,

    110,

    32,

    104,

    111,

    109,

    101,

    119,

    111,

    114,

    107,

    33,

    0

    };

    printf("%s\n", x);

    }

Question Stats

Latest activity: earlier.
This question has 1 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.