Question: 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
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
