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
In what ways are the two designs in part C different? How do you think these differences will relate to the ability of each desi
Ilya [14]
The top one is different from the bottom because of is curvature shape while the bottom one is a square shape i think the bottom will heat up faster because of the nice even area inside where heat waves can evenly flow
4 0
3 years ago
How many c atoms are in 2 mol of sucrose?
castortr0y [4]
12 carbon atoms<span>, 22 hydrogen atom, and 11 oxygen atoms in 2 moles of sucrose</span>
7 0
4 years ago
A student is able to lift 500N weight by applying 100N. What is the mechanical advantage of a simple machine?
Semmy [17]

Explanation:

Load=500N

Effort=100N

Now,

We have,

Mechanical advantage= Load / effort

= 500/100

=5

Therefore, mechanical advantage is 5.

5 0
3 years ago
Aspirin is a mixture of different compounds.<br> True <br> False
marishachu [46]
The answer would be true because it is not possible for aspirin to have only one compound if it does many things.
4 0
3 years ago
Read 2 more answers
Divergent plate boundary is when two plates come together <br><br><br><br> True or false
Ivahew [28]

False, divergent boundaries are when two plates move away from each other.

7 0
3 years ago
Other questions:
  • How much heat is absorbed during production of 112 g of NO by the combination of nitrogen and oxygen?
    9·1 answer
  • Milk of magnesia is often taken to reduce the discomfort associated with acid stomach or heartburn. The recommended dose is 1 te
    14·1 answer
  • Iron (Fe) undergoes an allotropic transformation at 912°C: upon heating from a BCC (α phase) to an FCC (γ phase). Accompanying t
    15·1 answer
  • What are the products of Nal+CaCl2? <br><br> Please help!
    10·1 answer
  • What name is given to this molecule? a. A positively charged molecule. b. This molecule consists of three hydrogen atoms bonded
    11·1 answer
  • New oceanic crust is created by?
    14·1 answer
  • In 2015, only 9% of the electricity used in the U. S. was generated from nuclear power. What are some of the costs associated wi
    8·1 answer
  • Predict the molecular structure (including bond angles) for each of the following.
    13·1 answer
  • the reaction of zinc metal and hydrochloric acid produces hydrogen gas and zinc chloride. true or false?
    10·1 answer
  • Please select the word from the list that best fits the definition
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!