Answer: Result:Enter the number of quarters in the jar: 4
Enter the number of dimes in the jar: 5
Enter the number of nickels in the jar: 2
Enter the number of pennies in the jar: 5
Total value is 1 dollars and 65 cents
Explanation: import java.util.Scanner;public class Coins { public static void main(String[]args) { int quarters, dimes, nickels, pennies; int total;Scanner scan = new Scanner (System.in);System.out.print("Enter the number of quarters in the jar: "); quarters = scan.nextInt();System.out.print("Enter the number of dimes in the jar: ");dimes = scan.nextInt(); System.out.print("Enter the number of nickels in the jar: ");nickels= scan.nextInt(); System.out.print("Enter the number of pennies in the jar: ");pennies = scan.nextInt(); int total_cents = 25*quarters + dimes*10 + nickels*5 + pennies;total =total_cents/100;total_cents = total_cents %100;System.out.println("Total value is " + total + " dollars and " + total_cents + " cents ");}}
Result:Enter the number of quarters in the jar: 4
Enter the number of dimes in the jar: 5
Enter the number of nickels in the jar: 2
Enter the number of pennies in the jar: 5
Total value is 1 dollars and 65 cents
A is correct! We did this in Law!
Have a merry Christmas!
It says you’ve only answered 11, but yeah it you’re account CAN be hacked
This is generally the same on Docs and Word. You'd just highlight the table, go into the settings, and expand it by one column, on docs by dragging it out a little more on the given grid.
Hope this helps!