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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!