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
A soil specimen was tested to have a moisture content of 32%, a void ratio of 0.95, and a specific gravity of soil solids of 2.7
belka [17]

Answer:

a. 0.9263

b. 0.4872

c. 13.83kN/m^{3}

Explanation:

moisture content (ω) = 0.32

void ratio (e) = 0.95

specific gravity (G_{s}) = 2.75

the degree of satruation (S) = \frac{w . G_{s} }{e} =0.32×2.75/0.95 = 0.9263

b. porosity (n) = \frac{e}{e + 1} = 0.95/(0.95 + 1)= 0.4872

c. dry unit weight (γ_{d}) = \frac{G_{s} . V_{w} }{1 + e}

taking specific unit weight of water (V_{w})= 9.81kN/m^{3}

γ_{d} = 2.75 × 1000/(1 + 0.95) = 13.83kN/m^{3}

5 0
3 years ago
Fluids at rest possess no flow energy. a)- True b)- False
gtnhenbr [62]

Answer:

True.

Explanation:

According the engineering flow they don not possess flow energy when they are in rest.

When they are in motion they show a translation energy.

The features if fluids may be different according the variables of pressure and temperature.

8 0
3 years ago
Rafel knows that lessons learned is a valuable aid to future projects. When should he and his team address
Arada [10]

Answer: Create lessons learned at the end of the project.

Explanation:

Lessons learned are the experiences that are gotten from a project which should be taken into account for the future projects. Lesson learned are created at the end of the project.

The main objective of the lessons learned is that they show both the positive experience and the negative experience of a project and this will help the future projects that will be undertaken.

5 0
3 years ago
Define office in one sentences​
Andreyy89
Define office in one sentence.

Capitalize D in define.
Sentence is one, so take away S.
Always add periods at the end of your sentences
5 0
3 years ago
Which of the following is an example of an iterative process?
Jlenok [28]
Answer:

-testing the solution and redesigning the prototype
3 0
4 years ago
Other questions:
  • The components of an electronic system dissipating 90 W are located in a 1-m-long circular horizontal duct of 15-cm diameter. Th
    11·1 answer
  • Design roller chain drive. Specify the chain size, the sizes and number of teeth in the sprockets, the number of chain pitches,
    14·1 answer
  • List the 6 steps used in the Buckingham Pi method
    10·1 answer
  • A ladder logic program and the associated physical input/output components are given below. Lighting changes from full darkness
    10·1 answer
  • A 450 MWt combined cycle plant has a Brayton cycle efficiency of 24% and a Rankine cycle efficiency of 29% with no heat augmenta
    6·1 answer
  • The Acme threading tool forms an inc luded angle of how many degrees? A. 30 B. 55 C. 29 D. 60
    10·1 answer
  • Explain the benefits of reading A vocabulary section at the beginning of a text
    10·2 answers
  • At many intersections, under certain circumstances, a right turn may be made while the traffic light is red. Before turning righ
    14·1 answer
  • What should I do in life?
    12·2 answers
  • If it is safe to do so you should shut off your engine if it’s going to be idling for longer than?
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!