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
Inessa [10]
3 years ago
7

Complete function PrintPopcornTime(), with int parameter bagOunces, and void return type. If bagOunces is less than 3, print "To

o small". If greater than 10, print "Too large". Otherwise, compute and print 6 * bagOunces followed by " seconds". End with a newline. Example output for ounces = 7:
Engineering
1 answer:
weqwewe [10]3 years ago
8 0

Answer:

#include <iostream>

using namespace std;

void PrintPopcornTime(int bagOunces) {

if(bagOunces < 3){

 cout << "Too small";

 cout << endl;

}

else if(bagOunces > 10){

 cout << "Too large";

 cout << endl;

}

else{

 cout << (6 * bagOunces) << " seconds" << endl;

}

}

int main() {

  PrintPopcornTime(7);

  return 0;

}

Explanation:

Using C++ to write the program. In line 1 we define the header "#include <iostream>"  that defines the standard input/output stream objects. In line 2 "using namespace std" gives me the ability to use classes or functions, From lines 5 to 17 we define the function "PrintPopcornTime(), with int parameter bagOunces" Line 19 we can then call the function using 7 as the argument "PrintPopcornTime(7);" to get the expected output.

You might be interested in
Does the location of a millimeter change the voltage or current of the circuit?
Cerrena [4.2K]

Answer:

Yes, it does.

Explanation:

8 0
3 years ago
An ideal gas undergoes two processes: one frictionless and the other not. In both the cases, the gas is initially at 200 ℉ and 1
Zarrin [17]

Answer:

The process which has friction

Explanation:

The entropy is simply the change in the state of the things or the molecules in the system. It is simply the change in the energy of the system with a focus on the atoms in the system. This is also known as the internal energy of the system and is given the symbol, G. The friction contributes to the change in the energy of the system. This is because friction generates another form of energy - that is heat energy. This energy causes the internal temperature id the system to increase. Hence the greater change in the temperature.

6 0
3 years ago
Read 2 more answers
A closed, rigid tank is lled with a gas modeled as an ideal gas, initially at 27°C and a gage pressure of 300 kPa. The gas is he
sergejj [24]

Answer:

T₂ =93.77  °C

Explanation:

Initial temperature ,T₁ =27°C= 273 +27 = 300 K

We know that

Absolute pressure = Gauge pressure + Atmospheric pressure

Initial pressure ,P₁ = 300+1=301 kPa

Final pressure  ,P₂= 367+1 = 368  kPa

Lets take  temperature=T₂

We know that ,If the volume of the gas is constant ,then we can say that

\dfrac{P_2}{P_1}=\dfrac{T_2}{T_1}

{T_2}=T_1\times \dfrac{P_2}{P_1}

Now by putting the values in the above equation we get

{T_2}=300\times \dfrac{368}{301}\ K

The temperature in  °C

T₂ = 366.77 - 273  °C

T₂ =93.77  °C

8 0
3 years ago
The inlet and exhaust flow processes are not included in the analysis of the Otto cycle. How do these processes affect the Otto
lara31 [8.8K]

Answer:

Suction and exhaust processes do not affect the performance of Otto cycle.

Explanation:

Step1

Inlet and exhaust flow processes are not including in the Otto cycle because the effect and nature of both the process are same in opposite direction.

Step2

Inlet process or the suction process is the process of suction of working fluid inside the cylinder. The suction process is the constant pressure process. The exhaust process is the process of exhaust out at constant pressure.

Step3

The suction and exhaust process have same work and heat in opposite direction. So, net effect of suction and exhaust processes cancels out. The suction and exhaust processes are shown below in P-V diagram of Otto cycle:

Process 0-1 is suction process and process 1-0 is exhaust process.

7 0
3 years ago
1. ELECTRICAL SHOCK
lions [1.4K]
Here’s some of them
6. J
7. I
10. O
13. F
14. E
15. N
3 0
3 years ago
Other questions:
  • we want to make a schottky diode on one surface of an n-type semiconductor, and an ohmic contact on the other side. the electron
    10·1 answer
  • A circuit contains a 40 ohm resistor and a 60 ohms resistor connected in parallel. If you test this circuit with a DMM you shoul
    14·1 answer
  • To reduce the drag coefficient and thus improve the fuel efficiency of cars,the design of side rearview mirrors has changed dram
    11·1 answer
  • When we utilize a visualization on paper/screen, that visualization is limited to exploring: Group of answer choices Relationshi
    9·1 answer
  • Someone please help me with this I’m stuck on it ?!i don’t have a lot of time
    12·1 answer
  • What is a network? I'LL MARK BRAINLEST
    12·2 answers
  • A 5.74 kg rock is thrown upwards with a force of 317 N at a location where the local gravitational acceleration is 9.81 m/s^2. W
    10·1 answer
  • Why do stores still sell those 1.5 volt batteries that are like three times the size of other 1.5 volt batteries. What is the po
    9·2 answers
  • How might a field like philosophy of history help scientists​
    14·1 answer
  • 1. Band saw lower wheel does not require a guard * true or false 2. Band saw upper guide should be adjusted to within 1/8" of th
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!