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 growing trend in urban design is the concept of a rooftop garden. If every building in a city were to install a rooftop garden
vlabodo [156]

Answer:The Urban heat island temperature will be REDUCED.

Two Impacts of Rooftop gardens

1) provision of shade against Sunlight.

2) It helps to purify the air around the building.

Explanation: Rooftop gardens are gardens made on top of the roofs of buildings, it is a Green initiative aimed at helping to improve the overall Environment.

Rooftop gardens have several significant benefits which includes

Reduction of the surrounding temperatures and the Urban heat Island temperatures.

Rooftop gardens helps to shade the roof from the direct impacts of harsh weather conditions.

Generally, plants are known as air purifiers as they remove the excess Carbondioxide around the environment through photosynthesis, and they also help to release water vapor which will help to improve the humidity of the environment.

5 0
3 years ago
What are Tresca and Von Mises yield criteria?
elena-s [515]

Answer

For isotropic material plastic yielding depends upon magnitude of the principle stress not on the direction.

Tresca and Von Mises yield criteria are the yield model which is widely used.

The Tresca yield criterion stated that yielding will occur in a material only when the greatest maximum shear stress reaches a critical value.

max{|σ₁ - σ₂|,|σ₂ - σ₃|,|σ₃ - σ₁|} = σ_f

under plane stress condition

  |σ₁ - σ₂| = σ_f

The Von mises yielding criteria stated that the yielding will occur when elastic energy of distortion reaches critical value.

σ₁² - σ₁ σ₂ + σ₂² =  σ²_f

5 0
3 years ago
I ran across this symbol in some Electrical wiring documents and I am unaware of what this means. Any help?
Minchanka [31]

Answer:

Opened Push-button Switch (i.e. a PTM Switch)

Explanation:

Tha's just another symbol for a switch, but this one specifies that the switch is a push-button type of switch.

Since it's not touching and completing the line, the state of the switch is initially open.

6 0
3 years ago
Mahamad Siddiqui sent false emails and letters of recommendation on behalf of individuals without their permission to nominate h
shusha [124]

Mahamad Siddiqui sent false emails and letters of recommendation on behalf of individuals without their permission to nominate himself for the Waterman Award at the National Science Foundation. His earlier emails were offered where he had solicited letters were offered as evidence. Siddiqui claimed that content of earlier emails was hearsay. Do the earlier emails come in is given below

Explanation:

1.Mohamed Siddiqui appeals his convictions for fraud and false statements to a federal agency, and obstruction in connection with a federal investigation.   Siddiqui challenges the district court's admission into evidence of e-mail and foreign depositions.

2.On February 18, 1997, Jodi Saltzman, a special agent with the NSF interviewed Siddiqui at Siddiqui's office at the University of South Alabama.   During the interview, Siddiqui signed a statement admitting that he had nominated himself for the Waterman Award, but that he had permission from Yamada and von Gunten to submit forms on their behalf.   Siddiqui also acknowledged in the statement that Westrick had recommended Siddiqui for a different award, the PECASE Award, but that Siddiqui had changed the wording of the letter to apply to the Waterman Award.   Siddiqui was indicted on April 29, 1997.

3.Siddiqui opposed the taking of the depositions on the grounds that the witnesses' personal presence at trial was necessary, and that Indian travel restrictions for its citizens residing abroad prevented him from traveling to Japan and Switzerland.   Specifically, Siddiqui asserted that because of religious persecution in India his travel to Japan or Switzerland related to the criminal action would put his family members still living in India at risk.   The magistrate judge ruled that the government had carried its burden of showing that Yamada and von Gunten would be unavailable to appear at trial, and instructed that Siddiqui's fear of obtaining a travel visa from India because of the threat of persecution of family members should not preclude the taking of the foreign depositions.

4.Yamada's deposition was taken in Japan on March 6, 1998.   At government expense, Siddiqui's counsel attended the deposition and cross-examined the witness, but was not in telephonic contact with Siddiqui during the deposition.   Yamada testified that on February 1, 1997, she received an e-mail stating that if she received a phone call from the NSF to “please tell good words about me.”   Yamada testified that she knew the e-mail was from Siddiqui because the name on the e-mail had Siddiqui's sender address, and it ended with the name “Mo” which Siddiqui had previously told her was his nickname, and which he had used in previous e-mail.

5.Yamada later admitted to Saltzman that she had not given Siddiqui permission to sign, but had made the earlier representation because she thought Siddiqui would go to jail.

6.During cross-examination of Yamada at the deposition, Siddiqui's counsel introduced an e-mail from Yamada to Siddiqui.   This e-mail contained the same e-mail address for Siddiqui as the e-mail received by Yamada and von Gunten apparently from Siddiqui.

7.Von Gunten's video deposition was taken in Switzerland.   At government expense, Siddiqui's counsel attended the deposition and cross-examined von Gunten.   During the deposition, Siddiqui was in communication with his counsel by telephone.   Von Gunten testified at the deposition that he had not submitted a letter of recommendation in favor of Siddiqui for the Waterman Award, and that he had not given Siddiqui permission to submit such a letter in his name.

8 0
4 years ago
The vertical and horizontal poles at the traffic-light assembly are erected first. Determine the additional force and moment rea
konstantin123 [22]

Answer:

1. Az=258 lb

2. My=3440 ft lb

3. ∑Mz= 0

Explanation:

∑ Fx= Ax=0

∑ Fy= Ay=0

∑ Fz= Az-86-86-86

Az=258 lb

∑Mx=86 X 31 +Mx=0

Mx=2666 ft lb

∑My=86 X 40 +My=0

My=3440 ft lb

∑Mz= 0

6 0
4 years ago
Other questions:
  • Technician A says amperage cannot exist without both voltage and resistance. Technician B says if amperage is high, then you kno
    6·1 answer
  • Complex poles cmd zeros. Sketch the asymptotes of the Bode plot magnitude and phase for each of the listed open-loop mmsfer fuoc
    10·1 answer
  • A steady state and continuous separator has a total feed rate of 100. kg/h of a 55.0 wt. % benzene mixture. The balance is tolue
    7·1 answer
  • A receptacle, plug, or any other electrical device whose design limits the ability of an electrician to come in contact with any
    14·1 answer
  • in a vehicle you're servicing the fuel pressure drops rapidly when the engine is says that one or more turned off. Technician a
    7·1 answer
  • A manager has a list of items that have been sorted according to an item ID. Some of them are duplicates. She wants to add a cod
    7·1 answer
  • Sophia is designing a new welding shop for the local high school. Where should the compressed gas and fuel cylinders be stored?
    15·1 answer
  • The minimum fresh air requirement of a residential building is specified to be 0.35 air changes per hour (ASHRAE, Standard 62, 1
    10·1 answer
  • Raw materials used of silicone rubber
    6·2 answers
  • 8. What are two ways SpaceX plans to change personal travel?
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!