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
Which answer below correctly identifies the type of change and the explanation for the boiling of water?
lesantik [10]
Boiling Water is a physical change. When water gets to a certain temperature, it's boiling point starts. 
7 0
3 years ago
Read 2 more answers
Write the two balanced equations, one for the incomplete combustion of methane (to form carbon monoxide and water vapor), and an
kompoz [17]

Answer:

2CH_{4(g)} +3O_{2(g)} -->2CO(g)+4H_{2}O_{(g)}\\CH_{4(g)} +2O_{2(g)} -->CO_{2(g)} +2H_{2}O_{(g)} \\

Explanation:

2CH_{4(g)} +3O_{2(g)} -->2CO(g)+4H_{2}O_{(g)}\\CH_{4(g)} +2O_{2(g)} -->CO_{2(g)} +2H_{2}O_{(g)} \\

The incomplete combustion of alkanes, and other fuels actually, happens when there is a limited supply of oxygen. Instead of the fuel burning completely to produce carbon dioxide, it produces carbon monoxide instead.

This gas is harmful to jumans because it combines with haemoglobin in lood and takes up space that belongs to oxygen which can lead to suffocation or even death

6 0
3 years ago
A compound is determined to have the empirical formula C2OH4. If the molar mass of the compound is 132 g/mol, determine the mole
8_murik_8 [283]

Answer: The molecular formula will be C_6O_3H_{12}

Explanation:

Molecular formula is the chemical formula which depicts the actual number of atoms of each element present in the compound.  

Empirical formula is the simplest chemical formula which depicts the whole number of atoms of each element present in the compound.  

Empirical weight of C_2OH_{4} is 12\times 2+16\times 1+1\times 4=44g

Molecular mass of compound is = 132 g

Now we have to calculate the molecular formula.

n=\frac{\text{Molecular weight}}{\text{Equivalent weight}}=\frac{132}{44}=3

The molecular formula will be=3\times C_2OH_4=C_6O_3H_{12}

5 0
3 years ago
What limiting factor is climate considered
gtnhenbr [62]
Climate is considered an abiotic limiting factor because it is non living . hope this helped :))
6 0
3 years ago
How many C-13 atoms are present, on average, in a 1.6000×104-atom sample of carbon?
san4es73 [151]
I don't know why I am answering this question but assuming C-13 has a natural abundance of 1.07%:

(1.6000x10^4)(0.0107) = 171.2 = 171 atoms of C-13
5 0
3 years ago
Read 2 more answers
Other questions:
  • How does vegetation on river banks affects erosion
    6·1 answer
  • Study the diagram about the varying pressures of Earth’s Layers.
    11·2 answers
  • 8. What causes the shielding effect to remain constant across a period? O The atomic radius increases.O Electrons are added to t
    6·2 answers
  • Complete and balance the following reaction. Zinc loses two electrons to form an ion. What type of reaction does this equation r
    5·2 answers
  • How does a balenced chemical equation satisfy the Law of Conservation of Mass?
    6·1 answer
  • Plan a chromotography experiment to investigate the colours in an ink​
    11·1 answer
  • What creates Earth's magnetic field? Choose the best answer from the selections below. a the hot, dense ball of solid iron at th
    11·1 answer
  • In Latin, the word arthropod means jointed foot.
    10·1 answer
  • Show work: Convert 4.21g of K3PO4to atoms
    10·1 answer
  • When cleaning a buret, begin by coating the inside with:.
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!