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
mina [271]
3 years ago
13

Write a program that allows the user to enter a number of quarters, dimes, and nickels and then outputs the monetary value of th

e coins in cents. For example, if the user enters 2 for the number of quarters, 3 for the number of dimes, and 1 for the number of nickels, then the program should output that the coins are worth 85 cents.
Chemistry
1 answer:
miskamm [114]3 years ago
4 0

Answer:

// Program is written in C++ Programming Language

// Comments are used for explanatory purpose

// Program Starts here

#include<iostream>

using namespace std;

int main ()

{

// Declare Variables

int quarter, dimes, nickel, cent;

// Enter values for each

cout<<"Quarter: ";

cin>>quarter;

cout<<"Dimes: ";

cin>>dimes;

cout<<"Nickels: ";

cin>>nickel;

/*

In the United States, these coins have the following values

Quarter = 25 cents

Done = 10 cents

Nickel = 5 cent

Total cent is calculated below

*/

cent = 25 * quarter + 10 * dimes + 5 * nickel;

// Print Total

cout<<"The coins are worth "<<cent<<" cents";

return 0;

}

You might be interested in
A metallurgist reacts 250.0 grams of 76.0% by mass silver nitrate solution with an excess of copper
Tomtit [17]
The answer is option d
8 0
3 years ago
How is dumping our waste different from dilution and dispersion?
ch4aika [34]
Dumping waste is different from dilution and dispersion. Dumping waste is directly disposing your waste and not regulating its effect to the environment. Dilution is done usually before waste water disposal, meaning adding water to the waste to minimize its concentration. 
6 0
3 years ago
Heterogéneo de tres fases y un componente.
never [62]
Un sistema heterogéneo de 3 fases y 1 componente puede ser:



Sólido (hielo)
Líquido (agua)
Gaseoso (vapor)
5 0
3 years ago
4. The woman's auxiliary at the Fire Company need to make 250 one pound pie crusts for a fund raiser. If
Andre45 [30]

Answer:

i rly did this for the extra points sry btw its d tho

Explanation:

7 0
2 years ago
On a cool morning, Uyen’s breath can form a cloud when she breathes out. Which changes of state are most responsible for Uyen se
Dima020 [189]
Condensation because condensation is a process of freezing
8 0
3 years ago
Read 2 more answers
Other questions:
  • What adaptation might help a plant survive in an environment with cold winters?
    13·2 answers
  • Describe at least two differences between ionic and covalent bonds.
    9·1 answer
  • Name two unique properties of water
    11·1 answer
  • Do pure substances have the same chemical and physical properties
    15·1 answer
  • What is carbon in the lithosphere initially a part of before part of the burning of fossil fuel?
    11·2 answers
  • How do mutations affect natural selection?
    10·2 answers
  • How many L of 3.0 M H2SO4 solution can be prepared by using 100.0 mL OF 18 M H2SO4?
    6·1 answer
  • What is the molality of an acetic acid solution that contains 0.500 mol of HC2H3O2 (molar mass: 60g/mol) in 0.800 kg of water?
    9·1 answer
  • State whether each of the following equations represents a synthesis (s), decomposition(d), single replacement
    8·1 answer
  • How many particles are in 2.5 mol of water, H2O?
    15·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!