Question: iPad < edhesive AP Computer Science Announcements Course Forum Progress Assignment 2 - Change Machine Write a program that will simulate a change machine

iPad < edhesive AP Computer Science Announcements Course Forum Progress Assignment 2 - Change Machine Write a program that will simulate a change machine found at cash registers. Input the amount paid and amount due from the keyboard. Tell the user how much change is owed and number of pennies, nickels, dimes, and quarters in change a customer would receive. 08:46 course.edhesive.com Please Enter the Amount Paid: 5.00 Please Enter the Cost of the Item: 4.57 + Change Owed: 0.43 Pennies: 3 Nickels: 1 Dimes: 1 Quarters: 1 100% Pay special attention to roundoff error. Your program should use division and modular division. No if's or loops may be used. You may assume all change will be a positive number with no more than two decimal places. If more than $1.00 is owed, the full value should be included in the number of quarters returned. For example, $2.50 should be returned as 10 quarters. 18hli@hra.org | Logout Hint: Modular division is a great way to find the remainder of a division. Think about how you can use this to calculate the change that is left over after some coins are given. Sample Run: NOTE: You MUST use the class name "Main" for this assignment. REMEMBER: you must SUBMIT your answer. Your assignment doesn't count as complete unless it has been submitted.
Step by Step Solution
3.48 Rating (164 Votes )
There are 3 Steps involved in it
import javautil public class Main public static void mainSt... View full answer
Get step-by-step solutions from verified subject matter experts
