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, 22.06.2019 18:30
Which cultural aspect does this type of song best portray? a german polka dance
Answers: 1
question
Computers and Technology, 22.06.2019 20:10
Assume the existence of a bankaccount class. define a derived class, savingsaccount that contains two instance variables: the first a double, named interestrate, and the second an integer named interesttype. the value of the interesttype variable can be 1 for simple interest and 2 for compound interest. there is also a constructor that accepts two parameters: a double that is used to initialize the interestrate variable, and a string that you may assume will contain either "simple", or "compound", and which should be used to initialize the interesttype variable appropriately. there should also be a pair of functions getinterestrate and getinteresttype that return the values of the corresponding data members (as double and int respectively).
Answers: 2
question
Computers and Technology, 23.06.2019 00:00
Which is the correct sequence of steps to set up a document in landscape orientation? a. select page setup from the file menu. then click the margins tab and select landscape. b. select page setup from the edit menu. then click the margins tab and select landscape. c. select page setup from the insert menu. then click the margins tab and select landscape. d. select page setup from the format menu. then click the margins tab and select landscape
Answers: 1
question
Computers and Technology, 23.06.2019 00:30
Which one of the following is considered a peripheral? a software b mouse c usb connector d motherboard
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
History, 07.07.2021 14:00
question
Social Studies, 07.07.2021 14:00
question
English, 07.07.2021 14:00
Questions on the website: 13722362