Computers and Technology

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)

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 21.06.2019 23:00, jeffylovesgreenbeans
What computer network component allows data transfers from one computer to another through a telephone line?
Answers: 1
image
Computers and Technology, 23.06.2019 00:30, Thisisdifinite
Which of the following would you find on a network
Answers: 3
image
Computers and Technology, 23.06.2019 09:00, vetterk1400
Design a class tictactoe that: holds the following information about the game: two-dimensional array (3 by 3), and winner. add additional variables as needed. includes the functions to perform the various operations on objects. for example, function to print the board, getting the move, checking if move is valid, determining if there is a winner after each move. add additional operations as needed. includes constructor(s). write the functions of the class, and write a program that uses the class. the program should declare an object of type tictactoe. the program will create the board and store it in the array. the program will allow two players to play the tic-tac-toe game. after every valid move update the array, check if there is a winner. if there is no winner and no tie, then print the board again to continue.
Answers: 2
image
Computers and Technology, 23.06.2019 19:30, bbgirl8638
Of the following pieces of information in a document, for which would you most likely insert a mail merge field?
Answers: 3
Do you know the correct answer?
You have to write the a program to mimic and ATM machine with the following directions:- 1) Your pr...

Questions in other subjects: