Reference no: EM132196783
Write a C program that will update a bank balance. A user cannot withdraw an amount of money that is more than the current balance. The current balance must always be non-negative value. The variable types must be selected wisely.
A sample run is below. The user's response is in boldface (C by discovery)
BANK ACCOUT PROGRAM!
Enter the old balance: 1234.50
Enter the transactions now.
Enter an F for the transaction type when you are finished.
Transaction Type (D=deposit, W=withdrawal, F=finished): D
Amount: 568.34
Transaction Type (D=deposit, W=withdrawal, F=finished): W
Amount: 25.68
Transaction Type (D=deposit, W=withdrawal, F=finished): W
Amount: 167.40
Transaction Type (D=deposit, W=withdrawal, F=finished): F
Your ending balance is $1609.76
Program is ending
Please type the code for me use the C language.