Write a c program that allows the user to make some ledger


Write a C program that allows the user to make some ledger transactions. The program should first prompt the user to enter the current balance of his/her ledger account (must allow for dollars and cents, and not less than zero). The program should then prompt the user to enter the number of debits to be posted, and then the number of credits to be posted. For this assignment, let's set a maximum of 25 credits or debits, you'll see why as you read on.

Using a loop, the program should then prompt the user to enter the amount of the first credit (a positive amount to add to the ledger balance), the amount of the second, the third, & etc., until the number of credits have been processed.

Using a second loop, the program should then prompt the user to enter the amount of the first debit (a positive amount to be subtracted from the ledger balance), then amount of the second, the third, etc. until the number of debits have been processed. Once all credits and debits have been made, the program should output the ledger balance.

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: Write a c program that allows the user to make some ledger
Reference No:- TGS01090285

Expected delivery within 24 Hours