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
Please answer question #2
natka813 [3]
Your answer is correct the last procedure of a vehicle starting is selecting the appropriate gear for the right situation. (D)
5 0
3 years ago
How may a Professional Engineer provide notice of licensure to clients?
azamat

Find full question attached

Answer:

(b) By including a statement that he or she is licensed by the Board for Professional Engineers and Land Surveyors immediately above the signature line in at least 12 point type on all contracts for services

Explanation:

A PE(professional engineer) licensee must show that he is licensed in order to show and ensure public safety as he is qualified for the job he is handling. The California regulations on professional engineers holds that all professional engineers must be licensed by the board of professional engineers and Land surveyors in order to operate legally as an engineer. The engineer may show licensure through the following options:

The engineer might provide statement to each client to show he is licensed which would then be signed by the client

The engineer may choose to post a wall certificate in his work premises to show he is licensed

The engineer may choose to include a statement of license in a letterhead or contract document which must be above the client's signature line and not less than 12 point type

4 0
3 years ago
Assume that a p+ - n diode is built with an n region width l smaller than a hole diffusion length (l
RSB [31]

Answer: hiiiiii

fff

Explanation:

7 0
3 years ago
Introduce JTA and JT
Vinil7 [7]
JT2 oaoaosnforeneomdocdmsnsksmsmsodnfnfj
7 0
3 years ago
A company, studying the relation between job satisfaction and length of service of employees, classified employees into three le
Wewaii [24]

Answer:

Below see details

Explanation:

A) It is attached. Please see the picture

B) First to calculate the overall mean,  

μ=65∗25/75+80∗25/75+95∗25/75  

μ=65∗25/75+80∗25/75+95∗25/75 = 80

Next to calculate E(MSTR) = σ2+(1/r−1) ∑ni(μi−μ)^2 = 5634

And E(MSE) = σ^2= 9

C) Yes, it is substantially large than E(MSE) in this case.

D) If we sampled 25 employees from each group, we are likely to get a F statistics to indicate differences of job satisfactions among three types of length of service of employees.

3 0
3 years ago
Other questions:
  • What is the correct statement regarding the stress over the section of a shaft in torsion?
    13·1 answer
  • Nitrogen enters a steady-flow heat exchanger at 150 kPa, 10°C, and 100 m/s, and it receives heat as it flows through it. Nitroge
    15·1 answer
  • - Consider a 2024-T4 aluminum material with ultimate tensile strength of 70 ksi. In a given application, a component of this mat
    7·1 answer
  • Technician A says that a lack of lubrication on the back of the disc brake pads can cause brake noise. Technician B says that pa
    8·1 answer
  • Cite another example of information technology companies pushing the boundaries of privacy issues; apologizing, and then pushing
    9·1 answer
  • How much thermal energy is needed to raise the temperature of 15kg gold from 45⁰ C up to 80⁰ C​
    10·1 answer
  • Determine if the fluid is satisfied​
    10·1 answer
  • What are the main causes of injuries when using forklifts?
    5·1 answer
  • What the minimum wire size for a general residential application on a 20 A circuit
    7·1 answer
  • 3. If nothing can ever be at absolute zero, why does the concept exist?
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!