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
telo118 [61]
3 years ago
7

Using C++, complete function PrintPopcornTime(), with int parameter bagOunces, and void return type. If bagOunces is less than 2

, print "Too 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:42 seconds1 #include 2 using namespace std; 34 void PrintPopcornTime(int bagOunces) { 56 /* Your solution goes here */ 78 } 9 int main() { 10 int userOunces; cin >> userOunces; 11 PrintPopcornTime12 13 return 0; 14 }
Computers and Technology
1 answer:
victus00 [196]3 years ago
3 0

Answer:

#include <iostream>

using namespace std;

void PrintPopcornTime(int bagOunces) {

   if(bagOunces < 2)

       cout << "Too small" << endl;

   else if(bagOunces > 10)

       cout << "Too large" << endl;

   else

       cout << 6 * bagOunces <<" seconds" << endl;

}

int main()

{

   int userOunces;

   cin >> userOunces;

   PrintPopcornTime(userOunces);

   return 0;

}

Explanation:

Inside the function PrintPopcornTime, check the parameter bagOunces using if structure. Depending on the value of bagOunces, print the required information.

Inside the main, ask the user for the userOunces. Call the PrintPopcornTime function with the userOunces.

You might be interested in
What is technology? *
natta225 [31]

Answer: All of the above is the answer

4 0
3 years ago
Which of the following should NOT be done to keep people from slipping on floors? A) Have the proper absorbents in an easy-to-fi
RoseWind [281]

The following options helps keep people from slipping on floors

A) Have the proper absorbents in an easy-to-find place to quickly put on spills : So that accidental little spills can be cleaned right away.

C) Wear slip-resistant footwear : It is a precautionary step to follow, no matter where we go.

D) Mark a slippery area with an easy-to-use tent sign that says " Caution, Slippery floor" : This allows people to be aware of the wet area and cross it cautiously.

Leaving oil and fluids to air dry thoroughly, takes a long time and there are chances that people step over it and slip.

So, the answer is

(B) Anytime oil or fluids are spilled on the floor, leave them to thoroughly air dry.

8 0
4 years ago
Read 2 more answers
. What are the technical advantages of optical fibres over other communications media?
katrin [286]

Answer: The advantage of the optical fibre over the other medium of the communication are as follows:-

  • The bandwidth of the optical fibre is comparatively higher than the other communication media
  • The security in regard with the loss of data can be tracked easily as compared with other copper wire medium of communication.Thus, the security system of optical fibre is more reliable.
  • The capacity of the fibre and the transmission power is also high as compared with other media of the communication such as copper wires,etc.
  • The optical fibre is less space consuming than other communication medium.

7 0
4 years ago
A(n)
Yuliya22 [10]

Answer:

A(n)  <u>Data Warehouse</u> is a central repository that contains stored or  archived data gathered from multiple databases.

Explanation:

A data warehouse is also database that is considered as central database of the company, where data of whole company is gathered and stored from multiple databases of the company. It also contains the archived data of the company that could be needed in future.

For Example

A company has several branches and franchises, each of place having own database to store the relevant information about that particular platform. The company has its own database that is linked with all platform's databases of the company. This central database is called data warehouse that gathers data from all sub data bases to analyze the operations and services of the company at different places. This database contains archive data of different databases of the company.

7 0
4 years ago
How do u delete a question on here if u have a chromebook
OverLord2011 [107]

Answer: you cant

Explanation:

you can not delete a question. Have a good day

3 0
3 years ago
Read 2 more answers
Other questions:
  • A computer scientist creates a necklace to celebrate the birth of her daughter. The necklace encodes her daughter's
    6·1 answer
  • Write an overloaded constructor for the Table class that will take a single argument for the color of the table Write a set meth
    13·1 answer
  • What are the first steps that you should take if you're unable to get onto the internet
    10·2 answers
  • Given:
    15·1 answer
  • A(n) ________ software installation enables you to decide which features you want to install on the hard drive
    10·1 answer
  • How can rows be added to a table​
    5·1 answer
  • Under what circumstances would a user bebetter off using a time-sharing system rather than a PC or asingle-user workstation?
    13·1 answer
  • Think of an example in your life where a number could be described as data, information, and knowledge
    14·1 answer
  • If your organization hires a new employee, what would you do to create a user account in the Linux system and add the account to
    11·1 answer
  • What internal commands can we use when in interactive mode? can we use CLS and CD?
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!