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 mass of 5 kg of saturated water vapor at 100 kPa is heated at constant pressure until the temperature reaches 200°C.
Alex73 [517]

Answer: you can watch a video on how to solve this question on you tube

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
Bending is defined as? A. the application of a load tending to distort a member in one direction. B. the application of opposing
amm1812
Hi how are you today
4 0
2 years ago
Who can use NIST resources?
sukhopar [10]

Answer:

Federal agencies

Explanation:

NIST (National Institute of Standards and Technology) also called between 1901 and 1988 National Bureau of Standards (NBS), it is an agency of the Technology Administration of the United States Department of Commerce. The mission of this institute is to promote innovation and industrial competition in the United States through advances in metrology, standards and technology in ways that improve economic stability and quality of life.

As part of this mission, NIST scientists and engineers continually refine the science of measurement (metrology) by creating precise engineering and manufacturing required for most current technological advances. They are also directly involved in the development and testing of standards made by the private sector and government agencies. The NIST was originally called the National Bureau of Standards (NBS), a name it had from 1901 to 1988. The progress and technological innovation of the United States depends on the abilities of the NIST, especially if we talk about four areas: biotechnology , nanotechnology, information technologies and advanced manufacturing.

7 0
3 years ago
Suppose a person (height of 1.8 m) walks in a room installed with a pyroelectric infrared (PIR) motion detector. The distance be
3241004551 [841]

Answer: b is your best option

Explanation:

8 0
3 years ago
Other questions:
  • The Fibonacci sequence 1, 1, 2, 3, 5, 8, 13, 21…… starts with two 1s, and each term afterward is the sum of its two predecessors
    8·2 answers
  • Policy makers in the U.S. government have long tried to write laws that encourage growth in per capita real GDP. These laws typi
    6·1 answer
  • After a capacitor is fully chargerd, a small amount of current will flow though it. what is this current called?
    14·1 answer
  • Mohr's circle represents: A Orientation dependence of normal and shear stresses at a point in mechanical members B The stress di
    8·1 answer
  • In your opinion, what is the external opportunity cost of a successful biking company in a community
    7·1 answer
  • Products. of sheet metal​
    8·1 answer
  • This just a question that I keep forgetting, are lightskin people black.??
    6·2 answers
  • How does science and technology address the problems of the society?
    6·2 answers
  • ____ grinders are used to grind diameters, shoulders, and faces much like the lathe is used for turning, facing, and boring oper
    10·1 answer
  • Technician a says that personal protective equipment (ppe) does not include clothing. technician b says that the ppe used should
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!