Question: create application on Java Create an application that calculates the number of dollars, quarters, dimes, nickels and pennies that vending machine should return as change.
Create an application that calculates the number of dollars, quarters, dimes, nickels and pennies that vending machine should return as change. Request Item price Enter 1.57 Request amount tendered Enter 5.00 These amounts will insure that all of your code will be tested No loops required. You should use cin, cout, integer division, modular division, and casting. Hint: Convert currency amounts to pennies to simplify calculations
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
