quarter is worth 25 cents, a nickel is worth 5 cents, and a penny is worth 1 cent. Write a Java program that is the user enter an integer amount. The program then outputs how to make change for that amount, using as w coins as possible. You may not use dimes (10 cent coins). Here are two sample runs: Sample Run #1: Enter an integer: 67 To make 67 cents, you need: 2 quarters 3 nickels 2 pennies Paragraph V B Sample Run #2: Enter an integer: 184 To make 84 cents, you need: 7 quarters 1 nickels 4 pennies I UV A/ EVE public static void main(String[] args) { + v ... KX KY
quarter is worth 25 cents, a nickel is worth 5 cents, and a penny is worth 1 cent. Write a Java program that is the user enter an integer amount. The program then outputs how to make change for that amount, using as w coins as possible. You may not use dimes (10 cent coins). Here are two sample runs: Sample Run #1: Enter an integer: 67 To make 67 cents, you need: 2 quarters 3 nickels 2 pennies Paragraph V B Sample Run #2: Enter an integer: 184 To make 84 cents, you need: 7 quarters 1 nickels 4 pennies I UV A/ EVE public static void main(String[] args) { + v ... KX KY