Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Program 1 You have been approached by an American fast food company with an existing Point of Sale system that gives the order total, and

Program 1
You have been approached by an American fast food company with an existing Point of Sale system that gives the order total, and workers can input an amount of money and be told how much change to provide. The business owners are finding that quite often, incorrect change is being given to customers, despite their having chosen a business that only deals in paper bills (no coins). This costs them money, and occasionally leads to frustrated customers, so they've asked you to come up with a simple program that can take a dollar amount and return the minimum number of 20,10,5, and 1 dollar bills needed to provide change.
Part 1
Identify the problem, the number of inputs, the number of outputs, and what the terminal output will look like.
Take dollar amount in whole numbers, return minimum number of bills to make change.
1 user input: dollar amount (1 integer variable)
4 outputs: 20$,10$,5$,1$ bills as change (4 integer variables)
Prompt for input, provide output amounts on individual lines.
Enter dollar amount:
20$ Bills:
10$ Bills:
5$ Bills:
1$ Bills:
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Reliability Engineering Designing And Operating Resilient Database Systems

Authors: Laine Campbell, Charity Majors

1st Edition

978-1491925942

More Books

Students also viewed these Databases questions