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
True/False
sweet [91]

Answer:

false jdbebheuwowjwjsisidhhdd

7 0
3 years ago
On a piece of paper, sketch the x-y stress state and the properly oriented principal stress state. Use the resulting sketch to a
stealth61 [152]

Answer:

See explaination

Explanation:

Please kindly check attachment for the step by step and very detailed solution of the given problem

6 0
3 years ago
While discussing VIN numbers, Technician A says that the first digit of the VIN identifies the country where the vehicle was man
ruslelena [56]
Usually the first digit of the vin id’s the country it was built. So technician A would be correct. That’s usually how it is. Hope this helps. Please let me know if this is incorrect
4 0
3 years ago
Its been days wsgggggg
Nataly [62]

Answer: ok

Explanation:

4 0
2 years ago
Read 2 more answers
What does the supply chain management process involve
VMariaS [17]

Answer:

It involves the active streamlining of a business's supply-side activities to maximize customer value and gain a competitive advantage in the marketplace

Explanation:

Supply chain management is the management of the flow of goods and services and includes all processes that transform raw materials into final products.

5 0
3 years ago
Other questions:
  • A large prime number isP = 232582657 - 1
    8·1 answer
  • Automotive service P2 Wastewater Management and Handling Spins
    9·1 answer
  • A heat engine does 210 J of work per cycle while exhausting 440 J of waste heat. Part A What is the engine's thermal efficiency?
    6·1 answer
  • A flame ionization detector, which is often used in gas chromatography, responds to a change in
    12·1 answer
  • Turbine blades mounted to a rotating disc in a gas turbine engine are exposed to a gas stream that is at [infinity] = 1100°C and
    6·1 answer
  • Ok there..............................................
    6·1 answer
  • Convert.46 to a percentage
    7·1 answer
  • Omplete the following program: [0.5 X 4 = 2]
    11·1 answer
  • How do i do this? if y’all don’t mind helping lol
    13·1 answer
  • How is an orthographic drawing similar to or different from an isometric drawing?
    14·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!