Answered step by step
Verified Expert Solution
Link Copied!

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 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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Focus On Geodatabases In ArcGIS Pro

Authors: David W. Allen

1st Edition

1589484452, 978-1589484450

More Books

Students also viewed these Databases questions

Question

=+What do you want them to know?

Answered: 1 week ago