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]
2 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]2 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
If a motorist moves with a speed of 30 km/hr, and covers the distance from place A to place B
Sergio039 [100]

Answer:

105 km

Explanation:

The motorist was going 30 km/hr, and it took 3 hours 30 minutes. That's 3.5 hours. 3.5×30=105

5 0
3 years ago
What is true about a point and shoot camera?
mario62 [17]

Answer:

What is true about a point and shoot camera?

  • They are often smaller than SLR cameras

6 0
2 years ago
Define Plastic vs elastic deformation.
Snowcat [4.5K]

Answer:

Plastic deformation, irreversible or permanent. Deformation mode in which the material does not return to its original shape after removing the applied load. This happens because, in plastic deformation, the material undergoes irreversible thermodynamic changes by acquiring greater elastic potential energy.

Elastic deformation, reversible or non-permanent. the body regains its original shape by removing the force that causes the deformation. In this type of deformation, the solid, by varying its tension state and increasing its internal energy in the form of elastic potential energy, only goes through reversible thermodynamic changes.

3 0
2 years ago
At the coast on a summer day, the land is hotter than the ocean. Warm air over the land rises and is replaced by cooler air, cau
Alona [7]
B) The convection current will reverse direction, reversing the winds.
8 0
2 years ago
Read 2 more answers
How many power station do we have​
loris [4]

Answer: 9,719

Explanation:

5 0
2 years ago
Other questions:
  • Determine the direct runoff and streamflow given the following unit hydrograph. The rainfall is collected at 4-hour intervals an
    14·1 answer
  • Two gases—neon and air—are expanded from P1 to P2 in a closed-system polytropic process with n = 1.2. _____ produces more work w
    7·1 answer
  • Disc brake rotors that are too thin cannot handle as much heat and will experience ___________.
    6·1 answer
  • Give the approximate temperature at which creep deformation becomes an important consideration for each of the following metals:
    5·1 answer
  • Air enters a 200 mm diameter adiabatic nozzle at 195 deg C, 500 kPa and 100 m/s. It exits at 85 kPa. If the exit diameter is 158
    11·1 answer
  • A Gaussian random voltage X volts is input to a half-wave rectifier and the output voltage is Y = Xu (X) Volts were u (x) is the
    9·1 answer
  • A circuit contains four 100 ohm resistors connected in series. If you test the circuit with a DMM you should read a total resist
    14·1 answer
  • What are the main causes of injuries when using forklifts?
    5·1 answer
  • Reason fo I.EE regulations in electrical installations​
    13·1 answer
  • Technician a s ays a shorted circuit can generate excessive heat. technician b says a shorted circuit will cause the circuit pro
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!