Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

An ATM software program that gives you infor-mation on the status of the bank account.Possible Points: 40The ProblemYou are a software programmer for Happy Bank.

An ATM software program that gives you infor-mation on the status of the bank account.Possible Points: 40The ProblemYou are a software programmer for Happy Bank. Youwant to create a program for the banks ATMs. Youwant to give the user choices to deposit money, with-draw money, check their balance, and see informationabout the last transaction they just made at the ATM,or quit the program. The program should check for validinput and keep a running total of the current balance astransactions are made.To solve this problem:Create a flowchart:First displays a menu and prompts the user with thefollowing choices.1. Deposit money2. Withdraw money.1 3. Print the current balance.4. Print the last transaction (type, amount).5. Quit the program and return the bank card.Prompt the user for the choice (int): a value of 1,2,3,4,5...ifsomething else is entered it will be an error and the userwill be prompted to reenter a value.If the user selects (1), prompt the user for the amount ofthe deposit. Add to the flowchart.amount: If greater than or equal 0 and less than 10,000dollars, then add to the usable balance.If the amount is greater than 10,000 dollars, then it isadded to the total balance but is not available for with-drawal that day.Call this the reserved balance.amount: If less than or equal to 0, then prompt theuser again continually for the amount until it is greaterthan 0. The prompt occurs at least once.If the user selects (2), prompt the user for the amountof the withdrawal. Add to the flowchart.- Compare that amount to the balance: If the balance isgreater than or equal the amount to withdraw, subtractthe amount from the balance.2 - If the balance is less than amount to withdraw, promptthe user again.- If it is, then deduct that amount from the balanceand exit the loop.Print the Balance: If the user selects (3):- Output to the screen the current usable balance andtotal (reserved + usable) balance.Print the last transaction: If the user selects (4):- transactionType: either Deposit, Large Deposit,Withdrawal, Balance Check- (string)- amount of that last transaction (deposit amount, with-drawal account, or balance amount), (double)Quit the program: If the user selects (5):If the user does not select (1-5), then give the mes-sage of invalid input.Now let the user loop back to the menu and prompt achoice until the user quits the program.Now implement everything in the flow chart in a C++3 program.AssumptionsHere are all of the things we practiced in class that willassist you in this assignment. All of these we practicedin class over the past four weeks and you understand:1. how to use an Integrated Development Environment(IDE) to compile/link/ execute C++ programs.2. how to use cout3. how to use cin to get user input4. how to use getline to get string user input5. how to format numbers6. the use of the if statement to check the size of a stringand the range-value of a numeric variable7. how to create a menu8. how to use loops to run through the menu more thanonce9. how to use loops to prompt for valid input more thanonce10. how to compress/zip-up your project folder used byyour IDE to submit this assignment4 Data to be usedMenu Choice (int)Amount (double)Balance (double)Large Balance (double)Last Transaction (double)Last Transaction type (string)

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

Step: 3

blur-text-image

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

Readings In Database Systems

Authors: Michael Stonebraker

2nd Edition

0934613656, 9780934613651

More Books

Students also viewed these Databases questions

Question

Draw and explain the operation of LVDT for pressure measurement

Answered: 1 week ago