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. 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.

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter10: Classes And Data Abstraction
Section: Chapter Questions
Problem 19PE
icon
Related questions
Question

Please explain the steps of coding. Thanks

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.
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, e twenties, e tens, e fives, 1 ones
Test case #2:
Input: $22
Output: 0 fifties, 1 twenties, e tens, e fives, 2 ones
...
Transcribed Image Text: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. 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, e twenties, e tens, e fives, 1 ones Test case #2: Input: $22 Output: 0 fifties, 1 twenties, e tens, e fives, 2 ones ...
Sample Output:
RESTART: /Users/keithbagley/Dropbox/NORTHEASTERN UNI
ework/HW1/atm2.py
Welcome to PDQ Bank! How much to withdraw? $ 252
Cha-ching!
You asked for $ 252
That breaks down to:
5 fifties
0 twenties
0 tens
O fives
2 ones
>>
RESTART: /Users/keithbagley/Dropbox/NORTHEASTERN UNI
ework/HW1/atm2.py
Welcome to PDQ Bank! How much to withdraw? $ 237
Cha-ching!
You asked for $ 237
That breaks down to:
4 fifties
1 twenties
1 tens
1 fives
2 ones
AMAZING points: These final two points may be awarded if you've completed the rest of the assignment perfectly
and.
• Use CONSTANTS in your solution as mnemonics for readability & maintainability.
Transcribed Image Text:Sample Output: RESTART: /Users/keithbagley/Dropbox/NORTHEASTERN UNI ework/HW1/atm2.py Welcome to PDQ Bank! How much to withdraw? $ 252 Cha-ching! You asked for $ 252 That breaks down to: 5 fifties 0 twenties 0 tens O fives 2 ones >> RESTART: /Users/keithbagley/Dropbox/NORTHEASTERN UNI ework/HW1/atm2.py Welcome to PDQ Bank! How much to withdraw? $ 237 Cha-ching! You asked for $ 237 That breaks down to: 4 fifties 1 twenties 1 tens 1 fives 2 ones AMAZING points: These final two points may be awarded if you've completed the rest of the assignment perfectly and. • Use CONSTANTS in your solution as mnemonics for readability & maintainability.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 4 images

Blurred answer
Knowledge Booster
Keywords
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
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning