Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Description An ATM allows a customer to withdraw a maximum of $500 per day. If a customer withdraws more thain $300, the service charge is
Description An ATM allows a customer to withdraw a maximum of $500 per day. If a customer withdraws more thain $300, the service charge is 4% of the amount over $300. If the customer does not have sufficient money in the account, the ATM informs the customer about the insufficient funds and gives the customer the option to withdraw the money for a service charge of $25.00. If there is no money in the account or if the account balance is negative, t to be withdrawn is greater than $500, the ATM informs the customer about the maximum amount that can be withdrawn. Write an algorithm that allows the customer to enter the amount to be withdrawn. The algorithm then checks the total amount in the account, dispenses the money to the customer, and debits the account by the amount withdrawn and the service charges, if any. Write a menu driven program that will keep prompting the user a withdrawal amount until either the amount in the account is less than or equal to 0 or until the user decides to quit he ATM does not allow the customer to withdraw any money. If the amount Specifications To get full credit you program must contain/perform the following Declare variables with meaningful names and correct types Document all your variables . You must have named constants and use them in your program and document them (all the numbers you see in the description must all be constants) Document portions of your code (parts that perform input, output, calculations etc.) . Use iomanip to format output to two decimal places and aligned nicely . Program must compile and run with various inputs Sample Output Jimis -MacBook-Pro:Asst06 VaskoDaGamer$ g++ Asst06.cpp Jimis -MacBook -Pro Asst06 VaskoDaGamer$ ./a.out Desposit initial amount: - 23.56 Desposit initial amount: Three Fifty Desposit initial amount: 1252.43
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started