Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Transactions On Large Scale Data And Knowledge Centered Systems Xxviii Special Issue On Database And Expert Systems Applications Lncs 9940

Authors: Abdelkader Hameurlain ,Josef Kung ,Roland Wagner ,Qimin Chen

1st Edition

3662534541, 978-3662534540

More Books

Students also viewed these Databases questions

Question

8 6 6

Answered: 1 week ago