Question: This is all the details given, must use a java program. Write a Java program that plays the role of a cash register. The program

This is all the details given, must use a java program.

This is all the details given, must use a java program. Write

Write a Java program that plays the role of a cash register. The program is to work as follows: 1. Prompt a user for the amount of sale and then read the amount. Next, prompt the user for the amount tendered and read it too. 2. a. Compute the total change. b. Compute the number of dollar bills, quarters, dimes, nickels and cents in the total change. c. Display the total change, and its denominations - Dollars, quarters, dimes, nickels, and cents. USE PROPER DOCUMENTATION AND INDENTATION. YOUR OUTPUT MUST LOOK LIKE THE SAMPLE BELOW. Run your program several times, each time with a new pair of data from below

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!