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
Bas_tet [7]
3 years ago
5

Write multiple if statements

Engineering
1 answer:
Tatiana [17]3 years ago
3 0

Code:

#include <iostream>

using namespace std;

int main()

{

  int Car_Year;

  cout<<"Please Enter the Car Model."<<endl;

  cin>>Car_Year;    

 if (Car_Year<1967)

 {

cout<<"Few safety features."<<endl;

 }

else if (Car_Year>1971 && Car_Year<=1991)

{

cout<<"Probably has head rests."<<endl;

}

else if (Car_Year>1991 && Car_Year<=2000)

{

cout<<"Probably has antilock brakes."<<endl;

}

else if (Car_Year>2000)

{

cout<<"Probably has airbags."<<endl;

  }

else

{

cout<<"Invalid Selection."<<endl;

}

  return 0;

}

Output:

Please Enter the Car Model.

1975

Probably has head rests.

Please Enter the Car Model.

1999

Probably has antilock brakes.

Please Enter the Car Model.

2005

Probably has airbags.

Please Enter the Car Model.

1955

Few safety features.

Explanation:

We were required to implement multiple If else conditions to assign car model year with the corresponding features of the car.

The code is tested with a wide range of inputs and it returned the same results as it was asked in the question.

You might be interested in
A surveyor knows an elevation at Catch Basin to be elev=2156.77 ft. The surveyor takes a BS=2.67 ft on a rod at BM Catch Basin a
fenix001 [56]

Answer:

the elevation at point X is 2152.72 ft

Explanation:

given data

elev = 2156.77 ft

BS = 2.67 ft

FS = 6.72 ft

solution

first we get here height of instrument that is

H.I = elev + BS   ..............1

put here value

H.I =  2156.77 ft + 2.67 ft  

H.I = 2159.44 ft

and

Elevation at point (x) will be

point (x)  = H.I - FS   .............2

point (x)  = 2159.44 ft  - 6.72 ft

point (x)  = 2152.72 ft

3 0
3 years ago
In which type of shoot is continuous lighting used?
Fiesta28 [93]

A type of shoot in which continuous lighting used is: 1) studio.

<h3>What is a photoshoot?</h3>

A photoshoot simply refers to a photography session which typically involves the use of digital media equipment such as a camera, to take series of pictures (photographs) of models, group, things or places, etc., especially by a professional photographer.

<h3>The types of shoot.</h3>

Basically, there are four main type of shoot and these include the following:

  • Studio
  • Underwater
  • Action
  • Landscape

In photography, a type of shoot in which continuous lighting used is studio because it enhances the photographs.

Read more on photography here: brainly.com/question/24582274

#SPJ1

4 0
2 years ago
In an experiment, the local heat transfer over a flat plate were correlated in the form of local Nusselt number as expressed by
zvonat [6]

Answer:

R= 1.25

Explanation:

As given the local heat transfer,

Nu_x = 0.035 Re^{0.8}_x Pr^{1/3}

But we know as well that,

Nu=\frac{hx}{k}\\h=\frac{Nuk}{x}

Replacing the values

h_x=Nu_x \frac{k}{x}\\h_x= 0.035Re^{0.8}_xPr^{1/3} \frac{k}{x}

Reynolds number is define as,

Re_x = \frac{Vx}{\upsilon}

Where V is the velocity of the fluid and \upsilon is the Kinematic viscosity

Then replacing we have

h_x=0.035(\frac{Vx}{\upsilon})^{0.8}Pr^{1/3}kx^{-1}

h_x=0.035(\frac{V}{\upsilon})^{0.8}Pr^{1/3}kx^{0.8-1}

h_x=Ax^{-0.2}

<em>*Note that A is just a 'summary' of all of that constat there.</em>

<em>That is A=0.035(\frac{V}{\upsilon})^{0.8}Pr^{1/3}k</em>

Therefore at x=L the local convection heat transfer coefficient is

h_{x=L}=AL^{-0.2}

Definen that we need to find the average convection heat transfer coefficient in the entire plate lenght, so

h=\frac{1}{L}\int\limit^L_0 h_x dx\\h=\frac{1}{L}\int\limit^L_0 AL^{-0.2}dx\\h=\frac{A}{0.8L}L^{0.8}\\h=1.25AL^{-0.2}

The ratio of the average heat transfer coefficient over the entire plate  to the local convection heat transfer coefficient is

R = \frac{h}{h_L}\\R= \frac{1.25Al^{-0.2}}{AL^{-0.2}}\\R= 1.25

3 0
3 years ago
What does a peak flow meter allow you to assess?
Alex Ar [27]

Answer:

  peak flow and any engineering considerations related thereto

Explanation:

It should be no surprise that a peak flow meter will report peak flow, sometimes with important maximum-value, time-constant, or bandwidth limitations. There are many engineering issues related to flow rates. A peak flow meter can allow you to assess those issues with respect to the flows actually encountered.

Peak flow can allow you to assess adequacy of flow and whether there may be blockages or impediments to flow that reduce peak levels below expected values. An appropriate peak flow meter can help you assess the length of time that peak flow can be maintained, and whether that delivers sufficient volume.

It can also allow you to assess whether appropriate accommodation is made for unexpectedly high flow rates. (Are buffers or overflow tanks of sufficient size? Is there adequate protection against possible erosion? Is there adequate support where flow changes direction?)

3 0
4 years ago
Plzzzzz help ASAP 50 points for the answer
USPshnik [31]
The guy above me is right fyi and its not 50 points
5 0
3 years ago
Other questions:
  • A 600-MW steam power plant, which is cooled by a nearby river, has a thermal efficiency of 54 percent. Determine the rate of hea
    9·1 answer
  • What is the damped natural frequency (in rad/s) of a second order system whose undamped natural frequency is 25 rad/s and has a
    15·1 answer
  • Question 5 (20 pts) The rated current of a three-phase transmission line is 300 A. The currents flowing by the line are measured
    6·1 answer
  • Why or why not the following materials will make good candidates for the construction of
    15·1 answer
  • A piston-cylinder assembly has initially a volume of 0.3 m3 of air at 25 °C. Mass of the air is 1 kg. Weights are put on the pis
    15·1 answer
  • Output all combinations of character variables a, b, and c. If a = 'x', b = 'y', and c = 'z', then the output is: xyz xzy yxz yz
    14·1 answer
  • I study to get good grades because my parents want to send me to the college of my choice.” This is an a. Intrinsic motivational
    6·2 answers
  • How many sets of equations (V and M equations) would you need to describe shear and moment as functions of x for this beam? In o
    12·1 answer
  • In a hydraulic system, a 100.-newton force is applied to a small piston with an area of 0.0020 m2. What pressure, in pascals, wi
    13·1 answer
  • Select the correct answer. Felix aspires to be an engineer working for the government. What credentials will Felix require to ap
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!