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:00
What machine listens for http requests to come in to a website’s domain? a. a router b. a browser c. a server d. a uniform resource locator
Answers: 1
question
Computers and Technology, 23.06.2019 14:30
Select the correct answer. which step can possibly increase the severity of an incident? a. separating sensitive data from non-sensitive data b. immediately spreading the news about the incident response plan c. installing new hard disks d. increasing access controls
Answers: 2
question
Computers and Technology, 23.06.2019 16:30
How to do this programming flowchart?
Answers: 3
question
Computers and Technology, 23.06.2019 19:00
Now you’re on your own. include a short summary of this section with plots in your lab report. write a matlab script file to do steps (a) through (d) below. include a listing of the script file with your report. 1 the soundsc(xx,fs) function requires two arguments: the first one (xx) contains the vector of data to be played, the second argument (fs) is the sampling rate for playing the samples. in addition, soundsc(xx,fs) does automatic scaling and then calls sound(xx,fs) to actually play the signal. mcclellan, schafer, and yoder, dsp first, 2e, isbn 0-13-065562-7. prentice hall, upper saddle river, nj 07458. c 2015 pearson education, inc. 4 mcclellan, schafer and yoder, signal processing first. prentice hall, upper saddle river, new jersey, 2003. c 2003 prentice hall. (a) generate a time vector (tt) to cover a range of t that will exhibit approximately two cycles of the 4000 hz sinusoids defined in the next part, part (b). use a definition for tt similar to part 2.2(d). if we use t to denote the period of the sinusoids, define the starting time of the vector tt to be equal to t , and the ending time as ct . then the two cycles will include t d 0. finally, make sure that you have at least 25 samples per period of the sinusoidal wave. in other words, when you use the colon operator to define the time vector, make the increment small enough to generate 25 samples per period. (b) generate two 4000 hz sinusoids with arbitrary amplitude and time-shift. x1.t / d a1 cos.2
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
question
Spanish, 15.07.2019 15:00
question
Mathematics, 15.07.2019 15:00
Questions on the website: 13722363