Write a C program that allows the user to make some banking transactions

profileThehonest
 (Not rated)
 (Not rated)
Chat

PROGRAMMING ASSIGNMENT #5

Write a C program that allows the user to make some banking transactions. The program

should first prompt the user to enter the current balance of his/her bank account (in

dollars and cents, not less than zero). The program should then prompt the user to enter

the number of withdrawals to make, and then the number of deposits to make. For this

assignment, let's set a maximum of 50 deposits and 50 withdrawals, you'll see why as

you read on.   These will be stored in arrays, which you will be studying for this

assignment.  One of your program statements should be:

  float   deposit[50], withdrawal[50];

Using a loop, the program should then prompt the user to enter the amount of the first

deposit (a positive amount to add to the bank account balance), the amount of the

second deposit, the third, & etc., until the number of deposits have been processed

Using a second loop, the program should then prompt the user to enter the amount of the

first withdrawal (a positive amount to subtract from the bank account balance, if

possible), the amount of the second withdrawal, the third, & , etc. until the number of

withdrawals have been processed. Once all deposits and withdrawals have been made, the

 

program should output the ending balance. 

    • 10 years ago
    A+ Work
    NOT RATED

    Purchase the answer to view it

    blurred-text
    • attachment
      qq11i11.zip