A series of transactions is to be made on a persons bank account. Each transaction will consist of a transaction type, either L for lodgements or W for withdrawals and an amount.
e.g. L 55.00 Lodging 55.00
W 30.00 Withdrawal 30.00
It is not known how many transactions there are but the transactions are terminated by transaction type ‘X’.
(i)Design and write a program to accept a person’s account number, their balance and a series of transactions.
The final output from your program should be similar to the following:
Account Number : 6578390
Old balance : 103.00
New balance: 234.00
e.g. L 55.00 Lodging 55.00
W 30.00 Withdrawal 30.00
It is not known how many transactions there are but the transactions are terminated by transaction type ‘X’.
(i)Design and write a program to accept a person’s account number, their balance and a series of transactions.
The final output from your program should be similar to the following:
Account Number : 6578390
Old balance : 103.00
New balance: 234.00
Comment