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
Which of the following is the class of ingredient which is the base for most baked items?
Ierofanga [76]

Answer:flour

Explanation:

3 0
3 years ago
Is my paper's main idea, or thesis, clearly stated early on (within the first paragraph, ideally)?
Burka [1]
I dont know is your papers main idea stated clearly?
5 0
3 years ago
A large plate is fabricated from a steel alloy that has a plane strain fracture toughness of 55 MPa √m (50 ksi √in.). If, during
astra-53 [7]

Answer:

0.024 m = 24.07 mm

Explanation:

1) Notation

\sigma_c = tensile stress = 200 Mpa

K = plane strain fracture toughness= 55 Mpa\sqrt{m}

\lambda= length of a surface crack (Variable of interest)

2) Definition and Formulas

The Tensile strength is the ability of a material to withstand a pulling force. It is customarily measured in units (F/A), like the pressure. Is an important concept in engineering, especially in the fields of materials and structural engineering.

By definition we have the following formula for the tensile stress:

\sigma_c=\frac{K}{Y\sqrt{\pi\lambda}}   (1)

We are interested on the minimum length of a surface that will lead to a fracture, so we need to solve for \lambda

Multiplying both sides of equation (1) by Y\sqrt{\pi\lambda}

\sigma_c Y\sqrt{\pi\lambda}=K   (2)

Sequaring both sides of equation (2):

(\sigma_c Y\sqrt{\pi\lambda})^2=(K)^2  

\sigma^2_c Y^2 \pi\lambda=K^2   (3)

Dividing both sides by \sigma^2_c Y^2 \pi we got:

\lambda=\frac{1}{\pi}[\frac{K}{Y\sigma_c}]^2   (4)

Replacing the values into equation (4) we got:

\lambda=\frac{1}{\pi}[\frac{55 Mpa\sqrt{m}}{1.0(200Mpa)}]^2 =0.02407m

3) Final solution

So the minimum length of a surface crack that will lead to fracture, would be 24.07 mm or more.

7 0
3 years ago
What do you own that might not be manufactured?
horrorfan [7]

Answer:

A pet

Explanation:

Latin time I checked animals aren't made by people? I honestly don't know if this helps but I'm technically not wrong.

8 0
3 years ago
How deep is a 6ft hole?​
Pavlova-9 [17]

Answer:

I know this sounds quite deep but it is as deep as a grave

Explanation:

It's reality

3 0
2 years ago
Read 2 more answers
Other questions:
  • A room is cooled by circulating chilled water through a heat exchanger located in the room. The air is circulated through the he
    15·1 answer
  • Design a posttest-only experiment that would test each of the following causal claims. For each one, identify the study’s indepe
    13·1 answer
  • python Write a program that takes a date as input and outputs the date's season. The input is a string to represent the month an
    7·1 answer
  • Part of the following pseudocode is incompatible with the Java, Python, C, and C++ language Identify the problem. How would you
    12·1 answer
  • if a voltage is applied to a capacitor, current flows easily at first and then slows as the capacitor becomes charged. Inductors
    5·1 answer
  • If 65 gallons of hydraulic oil weighs 350lb, what is the specific weight of the oil in lb/ft^3?
    14·1 answer
  • A crude fermenter is set up in a shed in the backyard of a suburban house. Under anaerobic conditions with ammonia as the nitrog
    9·1 answer
  • A 5-mm-thick stainless steel strip (k = 21 W/m•K, rho = 8000 kg/m3, and cp = 570 J/kg•K) is being heat treated as it moves throu
    6·1 answer
  • Two routes connect an origin and a destination. Routes 1 and 2 have performance functions t1 = 2 + X1 and t2 = 1 + X2, where the
    6·1 answer
  • Which option identifies the type of engineering technician most likely to be involved in the following scenario?
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!