2 fifties 0 twenties 0 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 Ikeithbagley@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 0 twenties 0 tens 0 fives 1 ones Ikeithbagley@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 0 twenties 0 tens O fives 2 ones 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, 0 twenties, 0 tens, O fives, 1 ones Test case #2: Input: $22 Output: 0 fifties, 1 twenties, 0 tens, 0 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 0 twenties

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
2 fifties
0 twenties
0 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
Ikeithbagley@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
0 twenties
0 tens
0 fives
1 ones
Ikeithbagley@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
0 twenties
0 tens
O fives
2 ones
Transcribed Image Text:2 fifties 0 twenties 0 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 Ikeithbagley@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 0 twenties 0 tens 0 fives 1 ones Ikeithbagley@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 0 twenties 0 tens O fives 2 ones
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, 0 twenties, 0 tens, O fives, 1 ones
Test case #2:
Input: $22
Output: 0 fifties, 1 twenties, 0 tens, 0 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
0 twenties
Transcribed Image Text: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, 0 twenties, 0 tens, O fives, 1 ones Test case #2: Input: $22 Output: 0 fifties, 1 twenties, 0 tens, 0 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 0 twenties
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Data Binding
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education