Question: Write a program to process a collection of transactions on an account as follows Ask for and read the customer BALANCE Ask for and read

Write a program to process a collection of transactions on an account as follows
Ask for and read the customer BALANCE
Ask for and read TRANSACTION TYPE
While TRANSACTION TYPE is not EXIT do
if TRANSACTION TYPE is DEPOSIT then
Ask for and read Transaction AMOUNT
credit transaction AMOUNT to BALANCE
else if TRANSACTION TYPE is WITHDRAWAL then
Ask for and read Transaction AMOUNT
if BALANCE can not cover transaction AMOUNT then
debit the customer $25.00 for insufficient fulats
else
debit the customer for the transaction AMOUNT
endif
else
print a message saying "unidentifed transaction"
endif
Ask for and read the next TRANSACTION TYPE
Endwhile
able to complete this.
Test run your program with the following data. Input and Output should look exactly as shown below.
What is the starting balance: 50.05
Enter Transaction: , W
Enter Trans. Amt: ,100.00
Insufficient fund. You have been debited $25.00. New Balance is $25.05
Enter Transaction:
D
Enter Trans. Amt: ,80.00
Balance after Deposit: $105.05
Enter Transaction:
d
Enter Trans. Amt:
40.00
Balance after Deposit: $145.05
Enter Transaction:
C
Unidentified Transaction
Enter Transaction:
w
Enter Trans. Amt:
100.50
Balance after Withdrawal: $44.55
4
Enter Transaction:
E
Beginning balance:
$50.05
# of Deposits:
2
# of Withdrawals:
1
# of unidentified Trans: 1
Total Deposits: ,$120.00
Total Withdrawals: ,$100.50
Total Bank Fees:
$25.00
Ending Balance:
$44.55
Good Bve
 Write a program to process a collection of transactions on an

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!