1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Marysya12 [62]
3 years ago
6

Write an application that determines the value of the coins in a jar and prints the total in dollars and cents. Read integer val

ues that represent the number of quarters, dimes, nickels, and pennies. Use a currency formatter to print the output.
Computers and Technology
2 answers:
Svetradugi [14.3K]3 years ago
8 0

Answer:

5

2

and 5

Explanation:

just do it youll see

pantera1 [17]3 years ago
4 0

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

You might be interested in
What does the chart elements option allow you to change
S_A_V [24]
You can change the format of individual chart elements, such as the chart area, plot area, data series, axes, titles, data labels, or legend.


5 0
3 years ago
Read 2 more answers
GUYS!
saul85 [17]

Attached is the answer, please look.

3 0
3 years ago
Listen up peeps i need a volunteer got it
miv72 [106K]

Answer:

volunteer for what?

Explanation:

depending on what it is I'm down lol

4 0
3 years ago
Read 2 more answers
Why do you think the issue of evolution become a cause celebre in the 1920s
vovikov84 [41]
Religious people are fearful morons oh and human progress but this is an opinionated question so you can't get this wrong
6 0
3 years ago
Write an algorithm to calculate the multiple of 5<br>​
Sauron [17]

Answer:

Multiples of 5 are 5, 10, 15, 20, 25,...

6 0
3 years ago
Other questions:
  • A form of speech used by a speaker who is attempting to be witty and amusing is _________.
    13·2 answers
  • Billy needs to type a bibliography/reference page for the report that he just typed. Which paragraph format should he use?
    8·1 answer
  • When using a target drive that is fat32 formatted, what is the maximum size limitation for split files?â?
    12·1 answer
  • A researcher makes a _____ about another population when she makes a generalization.
    15·1 answer
  • Advantages of e commerce
    14·1 answer
  • In Access, you use the Save As command to save a copy of your data. True or False
    15·1 answer
  • Imagine Frankie has a computer with a full hard drive. She needs to create and save a new document, so she deletes a bunch of ol
    8·1 answer
  • How do you create a formula in excel​
    10·1 answer
  • Bunco is a dice throwing game that requires no decisions to be made or skill on the part of the player just luck. In the simples
    7·1 answer
  • You add a filter by condition, and set the condition to [Weight]&gt;50. How will this affect your data? in tableau
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!