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

Question
please follow instructions requirement- please use java language and the code expected to be relatively short, up 10 lines
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
Sample Run #2:
Enter an
integer: 184
To make 84 cents,
you need:
7 quarters
1 nickels
4 pennies
B I UA
Ev
public static void main(String[] args) {
&
+ ✓
:
Transcribed Image Text: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 Sample Run #2: Enter an integer: 184 To make 84 cents, you need: 7 quarters 1 nickels 4 pennies B I UA Ev public static void main(String[] args) { & + ✓ :
Expert Solution
steps

Step by step

Solved in 3 steps with 2 images

Blurred answer