Question: EGR 140: Computer Programming SSI t#9: Assigned: Friday, 29 September 2017 Due: Wednesday, 4 October 2017 Points 20 to do the following things. It calculates

EGR 140: Computer Programming SSI t#9: Assigned: Friday, 29 September 2017 Due: Wednesday, 4 October 2017 Points 20 to do the following things. It calculates the bills and coins that a Write an error-free Java program cashier needs to give to a customer after they have made a purchase Prompts the user to input two data values. The first data value is an integer that corresponds to dollars (number will be less than 200 but greater than -1). The second data value is a cents value and should be between 0 and 99 (inclusive). Make the user reenter the dollar and/or cents value if it is not in the correct range. .From the main program, call two methods that dictate how many bills/coins a customer should get as change back from the purchase. The values entered by the user correspond to the amount that the person should get back. .The first method should receive from the main program the number of dollars and determine the fewest number of bills to return to the customer out of 20's, 10's, 5's and The second method should receive from the main program the number of cents and determine the fewest number of coins (quarters, dimes, nickels, pennies) to return to the customer . For this program, one (or both) methods must have void return values. Therefore, the display (print) statements will be in the method, not in main). The program should print a message saying something like this: Enter a dollar value Enter a dollar value 0O-137 Enter cents value Your returned bills for 137 dollars is 6 twenties 1 tens 1 fives 2 ones. * .. Your returned change for 68 cents is 2 quarters 1 dimes 1 nickels 3 pennies eThank you for shopping with us
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
