Question: It is a python program. Make sure it work and run in IDLE 3.10 Filename for submission: atm.py Consider the software that runs in an

 It is a python program. Make sure it work and run

in IDLE 3.10 Filename for submission: atm.py Consider the software that runs

in an Automated Teller Machine (ATM) machine. One task that must be

It is a python program. Make sure it work and run in IDLE 3.10

Filename for submission: atm.py Consider the software that runs in an Automated Teller Machine (ATM) machine. One task that must be able to be performed is to determine the type (denomination) of currency and the numbers of bills (aka "banknotes" for those of you not from North America) for each type dispensed. A requirement is that our ATM use the fewest number of bills that it can to dispense the specified amount of money. It only dispenses fifties, twenties, tens, fives, and ones. Design and implement program that writes out what bills would be dispensed if this machine existed for the amount of money that was asked for by the user. Note: This assignment requires you to pay particular attention to your output formatting. Be precise in your spelling and spacing. Match the textual prompts exactly as you see in the example below in order to pass our automated testing suite. You may copy the prompts given here to use in your code: Welcome to PDQ Bank! Amount to withdraw? $ Cha-ching! You asked for $ That breaks down to: No flowchart required for this part of the assignment, but... Before you begin coding -- write test cases! Test Cases In the comments at the top of your file, list 3 test cases that you came up with. Something like this but choose your own examples. You should write your test cases in such a way that, if they all pass, you can be fairly confident your program will work all the time. These test cases will count towards your "documentation" grade for this assignment. Test case #1: Input: $1 Output: 0 fifties, o twenties, o tens, o fives, 1 ones Test case #2: Input: $22 Output: O fifties, 1 twenties, o tens, o fives, 2 ones Sample Output (Note: I'm running from the command-line instead of in IDLE so the program output starts at "Welcome to PDQ Bank..."): Welcome to PDQ Bank! Amount to withdraw? $ 105 Cha-ching! You asked for $ 105 That breaks down to: 2 fifties twenties O tens 1 fives o ones keithbagley@Keiths-MacBook-Pro HW_1 % python3 atm.py Welcome to PDQ Bank! Amount to withdraw? $ 237 Cha-ching! You asked for $ 237 That breaks down to: 4 fifties 1 twenties 1 tens 1 fives 2 ones [keithbagley@Keiths-MacBook-Pro HW_1 % python3 atm.py Welcome to PDQ Bank! Amount to withdraw? $ 1 Cha-ching! You asked for $ 1 That breaks down to: O fifties otwenties O tens O fives 1 ones [keithbagley@Keiths-MacBook-Pro HW_1 % python3 atm.py Welcome to PDQ Bank! Amount to withdraw? $ 252 Cha-ching! You asked for $ 252 That breaks down to: 5 fifties twenties o tens fives 2 ones

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!