Question: JAVA EXERCISE 22 . Write a java class named Conversion which models a coinstar Ask the user for the amount of quarters, dimes, nickels, and

 JAVA EXERCISE 22 . Write a java class named Conversion which

JAVA EXERCISE 22 . Write a java class named Conversion which models a coinstar Ask the user for the amount of quarters, dimes, nickels, and pennies Convert to fewest bills necessary with a greedy change-making algorithm Apply a 7.8% fee Use simple math and beginner java fundamentals . . EXAMPLE 1: Input >>7 quarters >>5 dimes >>4 dimes >>9 penney Invalid Deposit Please Try again >>9 penny >>1 quarter >>1 dime two nickels Invalid Deposit please try again >1 dime >>2 nickels >>done Output Your exchange after fees is: 2 ones, 3 quarters, 2 dimes EXAMPLE 2: Input >>200 quarters >>done Output Your exchange after fees is : 2 twenties, 1 five, 1 one, and 1 dime

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!