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 1000 in python. Write a function ( name it welcome_message) to display welcome message. Write a function ( name it menu_message) to display the menu 0 for exit, 1 for withdraw, 2 for deposit, 3 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 balance_inquiry) that will display balance using 2 decimal places. Write a function ( name it simulate_atm). The function will call the welcome_message. 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. Use the if statement involving_name_=='_main_'to call the simulate_atm.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!