Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Activity: ATM System ( 3 0 points ) A typical ATM machine will allow a bank customer to perform the following tasks ( assume the
Activity: ATM System points
A typical ATM machine will allow a bank customer to perform the following tasks assume the initial balance is set to $: withdraw, deposit and balance inquiry. The ATM System should have the following:
Display Welcome Greetings Welcome to ABC Bank ATM"
Display Menu to indicate transaction typesbalance inquiry, withdraw, deposit.
for exit"
for withdraw"
for deposit"
for balance inquiry"
Execute balance inquiry by displaying the current balance.
Execute withdraw by asking the user for amount to withdraw and display balance after withdrawal. Display INSUFFICIENT FUNDS if the user entered an amount larger than the balance.
Execute deposit by asking the user the amount to deposit and display balance after the deposit.
A function to simulate ATM system.
The initial customer balance is set at $
Complete the following tasks.
Task # point
Define a global variable and have it reference
Task # points
Write a function name it welcomemessage to display welcome greetings.
Task # points
Write a function name it menumessage to display the menu shown above.
Task # points
Write a function name it withdraw that will prompt the user to enter the amount to withdraw assign to variable amt The function will reduce balance by the amount entered if the balance is greater than or equal to the amount entered or display "Insufficient Funds!" otherwise.
Task # points
Write a function name it deposit that will prompt the user to enter the amount to deposit assign to variable amt The function will increase the balance by the amount entered.
Task # points
Write a function name it balanceinquiry that will display balance using decimals places.
Task # points
Write a function name it simulateatm The function will call the welcomemessage. The function uses a while loop to allow the ATM user to perform several transactions deposit withdraw or balance inquiry until the user is ready to exit.
Task # points
Use the if statement involving namemain to call the simulateatm.
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