Question
JAVA Programming : Your local supermarket is reprogramming their cash registers and you are their software developer. The register will output the number and denomination
JAVA Programming:
Your local supermarket is reprogramming their cash registers and you are their software developer. The register will output the number and denomination of coins that must be given back to the customer as change for their purchase. For simplicity, we assume that the actual change due is from user input. Write a program that asks the user to enter their name, and the amount of change due in CENTS. The program should then output the number of half dollars, quarters, dimes, nickels, and pennies to be returned to the customer (in that order) that adds up to the correct change.
Sample output: This is what the program output should look like when it runs: (Bold items are entered by the user; values will change each time the program runs depending what the user enters).
Welcome to the smart Change Machine
------------------------------------------------
Your name: Bob Change
amount in cents: 94
Change coins due:
--------------------
Half dollars:1
Quarters: 1
Dimes: 1
Nickels: 1
Pennies: 4
Good Bye!
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started