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

Programming Logic & Design Comprehensive
9th Edition
ISBN:9781337669405
Author:FARRELL
Publisher:FARRELL
Chapter7: File Handling And Applications
Section: Chapter Questions
Problem 6PE
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
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage