Question: Task 4 (30 pts) complex program, 2-3 step processing, non-trivial data manipulation, formatted printing Project name: HW3 Bank Write a program that simulates bank transactions
Task 4 (30 pts) complex program, 2-3 step processing, non-trivial data manipulation, formatted printing Project name: HW3 Bank Write a program that simulates bank transactions for an account. When the program starts, the user is prompted to enter the amount of money in their account. or transactions. He/she enters a real number for each transaction 1. positive numbers mean money added to the bank. 2. negative numbers mean money removed from the bank. 3. 0 means the user has no more transactions. The loop will stop. Finally the program should display a message that compares the current ballance with the original one (before the transactions) See sample runs below. Match the output, especially teh formated printing of the transaction and ballance Sample run 1: This program simulates transactions in a bank account. Enter your current ballance (money in your account): 1076.1234 Enter transaction: 15 transaction ballance 15.0 1091.12 Enter transaction: 260 transaction ballance| 20.0 1071.12l Enter transaction: 100 transaction ballance 100.00 1171.12| Enter transaction: 80 Itransaction ballance| Enter transaction: -2800 ltransaction ballance| I 200e.00 Enter transaction: 50 transaction ballance| 80.00 1251.12 748.88 -698.88 Enter transaction: 0 You lost money. Bye
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
