subject

You have to write the a program to mimic and ATM machine with the following directions:- 1) Your program must contain functions to: deposit, withdraw, balance inquiry and quit.

2) Based on the selection made by the user the functions must be called with the following criteria:

a. A user can deposit any amount of money in their account. The function must display the new balance after depositing.

b. A person can withdraw an amount as long as it is lower than or equal to his current balance. The function must also display a warning if the new balance is below $100. Must not allow the user to withdraw if amount is great than current balance. Before this function ends - the new balance must be displayed.

c. Balance inquiry function must display the balance.

d. Quit function must create a txt file named Lastname_project. txt ( the lastname here is your last name). The function must write the new balance in this file. It must also display a statement saying " Thank you for choosing our ATM".

3. The above methods can be called n number of times in random order until the user chooses selection 4 - to quit.

4. Create a Project_read .txt file that has 5000 as default value. You will read the initial amount from this file and then plan your project. You cannot have any other global variables besides the one to open the input file and the one to read from the file. You can create more functions if needed by your program.( python)

ansver
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 10:40, almaga1979orfvwo
5. illustrate how fine-line inventory classification can be used with product and market segments. what are the benefits and considerations when classifying inventory by product, market, and product/market?
Answers: 2
image
Computers and Technology, 22.06.2019 22:00, robert7248
Competent nonverbal communication involves interacting with others in a manner that is appropriate for which of the following? select all that apply. situation task individuals
Answers: 3
image
Computers and Technology, 23.06.2019 05:20, jaylenmiller437
Which operating system is a version of linux?
Answers: 1
image
Computers and Technology, 23.06.2019 15:10, cathyjuan
What role did women fill during world war ii?
Answers: 1
You know the right answer?
You have to write the a program to mimic and ATM machine with the following directions:- 1) Your pr...

Questions in other subjects:

Konu
Mathematics, 29.01.2021 05:10