Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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.
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 belowStep 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