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
The aluminum rod AB (G 5 27 GPa) is bonded to the brass rod BD (G 5 39 GPa). Knowing that portion CD of the brass rod is hollow
Temka [501]

Answer:

Qcd=0.01507rad

QT= 0.10509rad

Explanation:

The full details of the procedure and answer is attached.

7 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
Technician A says that 5W-30 would be better to use than 20W-50 in most vehicles in
shtirl [24]
Technician is correct sorry if im wronghg
5 0
3 years ago
Read 2 more answers
When adding two 8 bit binary numbers, which of the following statements is true?
diamong [38]

Answer:

The result might require 9 bits to store

4 0
2 years ago
Relay contacts that are defined as being normally open (n.o.) have contacts that are:_____.
Reptile [31]

Relay contacts that are defined as being normally open (n.o.) have contacts that are open only if  the relay coil is known to have de-energized.

<h3>What is meant by normally open contacts?</h3>

Normally open (NO) are  known to be open if there is no measure of current that is flowing through a given coil but it often close as soon as the coil is said to be energized.

Note that  Normally closed (NO) contacts are said to be closed only if the coil is said to be de-energized and open only if the coil is said to carry current or is known to have energized.

The role of relay contact is wide. The Relays are tools that are often used in the work of  switching of control circuits and it is one that  a person cannot used for power switching that has relatively bigger ampacity.

Therefore, Relay contacts that are defined as being normally open (n.o.) have contacts that are open only if  the relay coil is known to have de-energized.

Learn more about Relay contacts from

brainly.com/question/15334861
#SPJ1

8 0
1 year ago
Other questions:
  • : The interior wall of a furnace is maintained at a temperature of 900 0C. The wall is 60 cm thick, 1 m wide, 1.5 m broad of mat
    12·1 answer
  • Que es resistencia ?
    15·1 answer
  • Consider an area-source box model for air pollution above a peninsula of land. The length of the box is 15 km, its width is 80 k
    8·1 answer
  • Arc blow typically occurs in steel and metals that contain iron.<br> True or false
    7·2 answers
  • Simplify the following expressions, then implement them using digital logic gates. (a) f = A + AB + AC (b) f = AB + AC + BC (c)
    5·1 answer
  • The best penetration is achieved with DCEN current.<br> True or false
    12·1 answer
  • How might an operations manager alter operations to meet customer demand? Name at least two ways.
    7·1 answer
  • What is required when setting up a smart phone as a WIFI hotspot?
    11·1 answer
  • The percentage modulation of AM changes from 50% to 70%. Originally at 50% modulation, carrier power was 70 W. Now, determine th
    15·1 answer
  • 15- Vipsana's Gyros House sells gyros. The cost of ingredients (pita, meat, spices, etc.) to make a gyro is $2.00. Vipsana pays
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!