Write a program that will process a financial transaction on an
unspecified number of accounts. The program will read the account
number, the balance, the transaction type and the amount from the user.
It will then apply the specified transaction to the balance of the
relevant account and write the account number and the updated balance
into the screen. The user input is made of the following information:
1)account number
2)current balance
3)transaction type
4)amount of transaction
sample input is:
acct num balance type amount
45 455 0 1.00
87 54 1 44.00
845 4548 2 455.00
type 0 means balance minus amount.
type 1 means balance + amount.
type 2 charge account by 2.
your programme should write warning message if new balance is negative
and if balance is >1000 add 1% to balance.
the output must contain acct num and new balance
here is sample output:
45 454
87 55
845 4550
best of luck