Write a program that models a cashier at a store. The program will take two numbers as input. Firstly, the cost of an item ($20.00 or less). Secondly, the amount of money given to the cashier ($20.00 or less). The program should output the change given in 10 dollar bills, 5 dollar bills, 1 dollar bills, quarters, dimes, nickels, or pennies. You should output the highest denominations possible. For example, if the item costs $5.20 and the cashier is given $10 then the change should be
Write a program that models a cashier at a store. The program will take two numbers as input. Firstly, the cost of an item ($20.00 or less). Secondly, the amount of money given to the cashier ($20.00 or less). The program should output the change given in 10 dollar bills, 5 dollar bills, 1 dollar bills, quarters, dimes, nickels, or pennies. You should output the highest denominations possible. For example, if the item costs $5.20 and the cashier is given $10 then the change should be
Calculus: Early Transcendentals
8th Edition
ISBN:9781285741550
Author:James Stewart
Publisher:James Stewart
Chapter1: Functions And Models
Section: Chapter Questions
Problem 1RCC: (a) What is a function? What are its domain and range? (b) What is the graph of a function? (c) How...
Related questions
Topic Video
Question
2. Write a program that models a cashier at a store. The program will take two numbers as input. Firstly, the cost of an item ($20.00 or less). Secondly, the amount of money given to the cashier ($20.00 or less). The program should output the change given in 10 dollar bills, 5 dollar bills, 1 dollar bills, quarters, dimes, nickels, or pennies. You should output the highest denominations possible. For example, if the item costs $5.20 and the cashier is given $10 then the change should be
4 dollar bills
3 quarters
1 nickle
Expert Solution
![](/static/compass_v2/shared-icons/check-mark.png)
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 2 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, calculus and related others by exploring similar questions and additional content below.Recommended textbooks for you
![Calculus: Early Transcendentals](https://www.bartleby.com/isbn_cover_images/9781285741550/9781285741550_smallCoverImage.gif)
Calculus: Early Transcendentals
Calculus
ISBN:
9781285741550
Author:
James Stewart
Publisher:
Cengage Learning
![Thomas' Calculus (14th Edition)](https://www.bartleby.com/isbn_cover_images/9780134438986/9780134438986_smallCoverImage.gif)
Thomas' Calculus (14th Edition)
Calculus
ISBN:
9780134438986
Author:
Joel R. Hass, Christopher E. Heil, Maurice D. Weir
Publisher:
PEARSON
![Calculus: Early Transcendentals (3rd Edition)](https://www.bartleby.com/isbn_cover_images/9780134763644/9780134763644_smallCoverImage.gif)
Calculus: Early Transcendentals (3rd Edition)
Calculus
ISBN:
9780134763644
Author:
William L. Briggs, Lyle Cochran, Bernard Gillett, Eric Schulz
Publisher:
PEARSON
![Calculus: Early Transcendentals](https://www.bartleby.com/isbn_cover_images/9781285741550/9781285741550_smallCoverImage.gif)
Calculus: Early Transcendentals
Calculus
ISBN:
9781285741550
Author:
James Stewart
Publisher:
Cengage Learning
![Thomas' Calculus (14th Edition)](https://www.bartleby.com/isbn_cover_images/9780134438986/9780134438986_smallCoverImage.gif)
Thomas' Calculus (14th Edition)
Calculus
ISBN:
9780134438986
Author:
Joel R. Hass, Christopher E. Heil, Maurice D. Weir
Publisher:
PEARSON
![Calculus: Early Transcendentals (3rd Edition)](https://www.bartleby.com/isbn_cover_images/9780134763644/9780134763644_smallCoverImage.gif)
Calculus: Early Transcendentals (3rd Edition)
Calculus
ISBN:
9780134763644
Author:
William L. Briggs, Lyle Cochran, Bernard Gillett, Eric Schulz
Publisher:
PEARSON
![Calculus: Early Transcendentals](https://www.bartleby.com/isbn_cover_images/9781319050740/9781319050740_smallCoverImage.gif)
Calculus: Early Transcendentals
Calculus
ISBN:
9781319050740
Author:
Jon Rogawski, Colin Adams, Robert Franzosa
Publisher:
W. H. Freeman
![Precalculus](https://www.bartleby.com/isbn_cover_images/9780135189405/9780135189405_smallCoverImage.gif)
![Calculus: Early Transcendental Functions](https://www.bartleby.com/isbn_cover_images/9781337552516/9781337552516_smallCoverImage.gif)
Calculus: Early Transcendental Functions
Calculus
ISBN:
9781337552516
Author:
Ron Larson, Bruce H. Edwards
Publisher:
Cengage Learning