Question: using BlueJ (java) 3. Counting Change Write a program that asks the user for how much an item is, and then how much the user
3. Counting Change Write a program that asks the user for how much an item is, and then how much the user paid for it. If you have paid enough, then the computer will output how much change there is and how to split it up by coin or bill (coins: quarter, dime, nickel, or penny). If you have not paid enough, it will tell you how much more money you still owe. (Hint: ints and mod will be useful here) Cost: 4.50 Paid: 6.15 Cost: 4.50 Paid: 3.25 You have not paid enough, and still owe: $1.15 You have enough, and will get back: 1 dollar 2 quarters 1 dime 1 nickel O pennies
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
