Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a function Define a global variable and have it reference 1 0 0 0 in python. Write a function ( name it welcome _
Write a function Define a global variable and have it reference in python. Write a function name it welcomemessage to display welcome message. Write a function name it menumessage to display the menu for exit, for withdraw, for deposit, for balance inquiry. Write a function name it withdraw that will prompt the user to enter the amount to withdraw assign to global variable 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. Write a function name it deposit that will prompt the user to enter the amount to deposit assign to global variable The function will increase the balance by the amount entered. Write a function name it balanceinquiry that will display balance using decimal places. 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 depositwithdraw or balance inquiry until the user is ready to exit. Use the if statement involvingnamemainto 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