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
Hi! I really really need help roght now please help me and if u put whatever in the chas as in just to get points i will ban you
dolphi86 [110]

The correct order given below shows the changes that occurs in a mice population in response to changes in their environment:

  • The population of mice is in an environment with many black rocks
  • Mice with black for are more likely to survive and reproduce than mice with brown fur
  • After many generations, most of the mice in the population have black fur
  • A sandstorm covers most of the population's environment with brown sand
  • Mice with black fur are less likely to survive and reproduce than mice with brown fur
  • After many generations, most of the mice in the population have brown fur

<h3>What is the correct order for natural selection in the desert environment given?</h3>

Based on the process of natural selection due to envrionmental pressures, the population of the mice in the desert changes as follows before and after the environmental change:

  • The population of mice is in an environment with many black rocks
  • Mice with black for are more likely to survive and reproduce than mice with brown fur
  • After many generations, most of the mice in the population have black fur
  • A sandstorm covers most of the population's environment with brown sand
  • Mice with black fur are less likely to survive and reproduce than mice with brown fur
  • After many generations, most of the mice in the population have brown fur

Therefore, the correct order shows the changes that occurs in a mice population in response to changes in their environment.

Learn more about about adaptation at: brainly.com/question/25594630

8 0
2 years ago
Calculate the internal energy of 2 moles of argon gas (assuming ideal behavior) at 298 K. Suggest two ways to increase its inter
Dominik [7]
I hope this helps you.

5 0
3 years ago
How many moles of H2O are needed to produce 5.6 mol of NaOH?<br> Na2O + H2O --&gt; 2NaOH
navik [9.2K]

Answer: 2.8 moles

Explanation:

The balanced equation below shows that 1 mole of sodium oxide reacts with 1 mole of water to form 2 moles of sodium hydroxide respectively.

Na2O + H2O --> 2NaOH

1 mole of H2O = 2 moles of NaOH

Let Z moles of H2O = 5.6 mole of NaOH

To get the value of Z, cross multiply

5.6 moles x 1 mole= Z x 2 moles

5.6 = 2Z

Divide both sides by 2

5.6/2 = 2Z/2

2.8 = Z

Thus, 2.8moles of H2O are needed to produce 5.6 mol of NaOH

3 0
3 years ago
This is the speed at which molecules or atoms move dependent on temperature and state of matter.
Lynna [10]
Molecular Motion<span> is the speed at which molecules or atoms move dependent on temperature and state of matter.

Explanation:

</span>All molecules are<span> in constant motion. Molecules of a liquid have </span>a lot of<span> freedom of movement than those </span>in an exceedingly<span> solid. Molecules </span>in an exceedingly<span> gas have </span>the best<span> degree of motion.</span>
<span>
Heat, temperature </span>and also the<span> motion of molecules </span>area unit<span> all </span>connected<span>. Temperature </span>could be a life<span> of </span>the common K.E.<span> of the molecules </span>in an exceedingly<span> material. Heat </span>is that the<span> energy transferred between materials that have </span>completely different temperatures<span>. Increasing the temperature </span>will increase<span> the </span>travel<span> motion of molecules Energy </span>is expounded<span> to temperature by the relationship.</span>
3 0
3 years ago
Read 2 more answers
One gram of liquid benzene is burned in a bomb calorimeter. The temperature before ignition was 20.826 C, and the temperature af
Licemer1 [7]

Answer:

fH = - 3,255.7 kJ/mol

Explanation:

Because the bomb calorimeter is adiabatic (q =0), there'is no heat inside or outside it, so the heat flow from the combustion plus the heat flow of the system (bomb, water, and the contents) must be 0.

Qsystem + Qcombustion = 0

Qsystem = heat capacity*ΔT

10000*(25.000 - 20.826) + Qc = 0

Qcombustion = - 41,740 J = - 41.74 kJ

So, the enthaply of formation of benzene (fH) at 298.15 K (25.000 ºC) is the heat of the combustion, divided by the number of moles of it. The molar mass od benzene is: 6x12 g/mol of C + 6x1 g/mol of H = 78 g/mol, and:

n = mass/molar mass = 1/ 78

n = 0.01282 mol

fH = -41.74/0.01282

fH = - 3,255.7 kJ/mol

4 0
3 years ago
Other questions:
  • What information do we need to determine the molecular formula of a compound from the empirical formula?
    8·1 answer
  • How many different atoms are there in H2SO4?
    15·1 answer
  • 1. The red light associated with the aurora borealis is emitted by excited oxygen atoms. This
    8·1 answer
  • A gas Syringe contains 42.3 milliliters of a gas at 98.15°C. Determine the volume that the gas will occupy if the temperature is
    8·1 answer
  • Why is chlorine a nonmetal
    9·1 answer
  • Which statement describes the use of a flowchart?
    9·2 answers
  • After passing, it is important to always follow through. T/F
    14·1 answer
  • What biological molecule that is used for energy is represented by the structure below?
    13·1 answer
  • Exhibits the highest intermolecular<br> forces of the states of matter.
    11·1 answer
  • How many molecules are their in o.5 mole of H2o
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!