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
4. An 82 kg hiker climbs Mt. Humphrey near Flagstaff. During a two hour period, the hiker's
bazaltina [42]

Answer:

\Delta E = 434253.96\,J, \Delta P = 60.313\,W

Explanation:

The change in energy is given by the change in gravitational potential energy:

\Delta E = m\cdot g \cdot \Delta h

\Delta E = (82\,kg)\cdot (9.807\,\frac{m}{s^{2}} )\cdot (540\,m)

\Delta E = 434253.96\,J

The average rate of change in terms of time is approximately this:

\Delta P = \frac{\Delta E}{\Delta t}

\Delta P = \frac{434253.96\,J}{(2\,h)\cdot (\frac{3600\,s}{1\,h} )}

\Delta P = 60.313\,W

8 0
3 years ago
How do we differentiate chemical change from physical change ​
bija089 [108]

Answer:

Chemical change :has change in mass, heat is needed, new element is formed, hard to reverse.......

Physicalchange:does not have change in mass, heat is not necessary, no new element is formed, easy to reverse

5 0
2 years ago
What would be the best way to measure the volume of a small ?​
WITCHER [35]
You can use a graduated cylinder.
6 0
2 years ago
Important of organic chemistry in nursing​
sasho [114]

Answer:

Nurses must use organic chemistry to determine how the bodies of their patients metabolized glucose, and how the body reacts to it.

8 0
2 years ago
1. How is the genome like a stack of papers?
Ivanshal [37]

Answer:

Except for mature red blood cells, all human cells contain a complete genome. DNA in the human genome is arranged into 24 distinct chromosomes—physically separate molecules that range in length from about 50 mil- lion to 250 million base pairs.

3 0
2 years ago
Read 2 more answers
Other questions:
  • If the distillation is performed in full as described in the experimental procedure (including the redistillations of fractions
    11·1 answer
  • Consider the balanced chemical equation,
    14·2 answers
  • Is heat being released or absorbed physical or chemical changes
    9·2 answers
  • What is the definition of bond?
    9·1 answer
  • How would you find how many unpaired electrons are in a compound? Ex. unpaired electrons in aluminum in aluminum II oxide.
    12·1 answer
  • Which of the following are correct about nodal planes in molecular orbitals? There may have more than one correct answers. Pictu
    7·1 answer
  • Which is a net ionic equation for the neutralization of a weak acid with a strong base? which is a net ionic equation for the ne
    9·1 answer
  • Oceans cover over 70% of Earth's surface, and precipitation constantly adds freshwater to the oceans. Yet, ocean levels remain r
    7·2 answers
  • In what kingdom would you find trees and flowers?<br> Animalia<br> Fung<br> Plantae (Plant)
    8·1 answer
  • Which of the following is a carboxylic acid?
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!