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
What are the factors of production in business? Land, labor, and capital land, capital, and interest land, labor, and customer b
kozerog [31]

Answer:

  • <em><u> Land, labor, and capital </u></em>

Explanation:

The <em>factors of production </em>are the resources that are used to produce goods and services.

By definition resources are scarce.

<em>Land</em> includes everything that comes from the land, that can be used as raw material to produce other materials; for instance, water, minerals, wood.

<em>Labor</em>  is the work done by anybody, not just at a factory but at any enterpise that produce a good or a service. For instance, the work done by a person in a bank or a restaurant.

<em>Capital</em> is the facilites (buildings), machinery, equipments, tools that the persons use to produce goods or services. For instance, a computer, a chemical reactor, or a pencil.

Nowadays, also entrepreneurship is included as a <em>factor of production</em>, since it is the innovative skill of the entrepeneurs to combine land, labor and capital what permit the production of good and services.

6 0
4 years ago
Read 2 more answers
1. Design a circuit, utilizing set/reset coils where PB 1 starts Motor 1 and PB2 stops Motor 1. Pressing and releasing either pu
lianna [129]

Answer:

Circuit attached with explanation

Explanation:

Hi Dear,

A circuit is attached for your reference.

When you press "start" PB, the supply reaches the motor starter relay coil "M" that is also in parallel with the "start" PB which allows the motor to remain ON even when you release "start" PB as supply to relay coil is directly from supply "L" through "M".

To stop motor just press "stop" PB and the circuit breaks which de-energize the relay coil and the motor stops.

Hope this finds easy to you.

5 0
3 years ago
What is the focus of 7th grade civics
Jobisdone [24]
C. seems like the best answer. i may be wrong so don’t quote me on that
7 0
3 years ago
Read 2 more answers
50.38
klemol [59]

Answer:

International Building Code (IBC)

Explanation:

6 0
2 years ago
Steam at 40 bar and 500o C enters the first-stage turbine with a volumetric flow rate of 90 m3 /min. Steam exits the turbine at
a_sh-v [17]

Answer:

(a) 62460 kg/hr

(b) 17,572.95 kW

(c) 3,814.57 kW

Explanation:

Volumetric flow rate, G = 30 m³ / 1 min => 90 / 60 => 1.5

Calculate for h₁ , h₂ , h₃

h₁ is h at P = 40 bar, 500°C => 3445.84 KJ/Kg

Specific volume steam, ц = 0.086441 m³kg⁻¹

h₂ is h at P = 20 bar, 400°C => 3248.23 KJ/Kg

h₃ is h at P = 20 bar, 500°C => 3468.09 KJ/Kg

h₄ is hg at P = 0.6 bar from saturated water table => 2652.85 KJ/Kg

a)

Mass flow rate of the steam, m = G / ц

m = 1.5 / 0.086441

m = 17.35 kg/s

mass per hour is m = 62460 kg/hr

b)

Total Power produced by two stages

= m (h₁ - h₂) + m (h₃ - h₁)

= m [(3445.84 - 3248.23) + (3468.09 - 2652.85)]

= m [ 197.61 + 815.24 ]

= 17.35 [1012.85]

= 17,572.95 kW

c)

Rate of heat transfer to the steam through reheater

= m (h₃ - h₂)

= 17.35 x (3468.09 - 3248.23)

= 17.35 x 219.86

= 3,814.57 kW

8 0
3 years ago
Other questions:
  • Based in bonding theory, explain why heat capacity increases when you consider metals, ceramics and polymers.
    14·1 answer
  • An aluminium alloy tube has a length of 750 mm at a temperature of 223°C. What will be its length at 23°C if its coefficient of
    7·1 answer
  • Which type of irrigation conserves more water than other types of irrigation?
    8·1 answer
  • Anne-Marie Cole runs the sales division for a local auto insurance firm. One of her key duties is to calculate her company's mar
    11·2 answers
  • Which technical planning document defines support tasks?
    7·1 answer
  • In a movie theater in winter, 510 people, each generation sensible heat at a rate of 80 W, are watching a movie. The heat losses
    11·1 answer
  • Respond with TRUE if the symbol of the valve shown below is
    10·1 answer
  • . An ideal vapor compression refrigeration cycle operates with a condenser pressure of 900 kPa. The temperature at the inlet to
    14·1 answer
  • Defination of rolling
    13·1 answer
  • 8. Block A shown in the figure below weighs 2000 N. The chord attached to A passes over a
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!