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

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 06:30
When early motion pictures played in movie theaters, they were often accompanied by live organ or piano music. which of the following are the most likely reasons that this happened? (select all that apply). the music was provided to distract audience members from the loud sounds made when filmstrips were changed. the music accompanied the movies because the movies were silent and audiences were used to hearing music during plays in theaters. the music usually was played before, and sometimes after the movie, as an alternative form of entertainment. the music viewers to interpret the dramatic action in the films.
Answers: 2
question
Computers and Technology, 23.06.2019 15:30
The song about casey jones a railroad engineer who gives his life on the job would most likely gall under the folk song category of? a-work song b-nonsense song c-religious song d-ballad
Answers: 1
question
Computers and Technology, 23.06.2019 22:30
You draw two cards from a standard deck of 52 cards, but before you draw the second card, you put the first one back and reshuffle the deck. (a) are the outcomes on the two cards independent? why?
Answers: 3
question
Computers and Technology, 24.06.2019 15:50
Andy would like to create a bulleted list. how should he do this? andy should click on the bullet icon or select the bullet option from the menu and then type the list. andy should press the shift key and the 8 key at the beginning of each line of text. andy should type the text and then click on the bullet command. andy should press return and the bullets will automatically
Answers: 2
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
question
Mathematics, 17.02.2021 16:40
question
Biology, 17.02.2021 16:40
Questions on the website: 13722360