Question: Create a Java program that prompts a cashier to enter the number of quarters, dimes, nickels, and pennies stored in a cash drawer. Pass these

 Create a Java program that prompts a cashier to enter the

Create a Java program that prompts a cashier to enter the number of quarters, dimes, nickels, and pennies stored in a cash drawer. Pass these values to a countChange() method to calculate the dollar amount for each coin: quarters, dimes nickels, and pennies, and the total dollar amount of all coins. The countChange0 method will display the monetary value of each coin and return the total dollar amount to the main). The main) method displays the total number of coins in the drawer and the total dollar amount of all coins. Pass the total dollar amount of coins to the nextCashier) method, to calculate the amount of money needed by the next cashier to operate the register. The nextCashier() method accepts the total dollar amount and multiples the amount by 4. Display the newly calculated value in the nextCashier) method

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!