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
Omg I just got 17/25 questions wrong using this on an Ag test , but got 100’s every time on health
Fudgin [204]

Answer:

sorry im answering questions for the points cuz im built dfferent

Explanation:

5 0
3 years ago
Read 2 more answers
If the driver gear has 5 teeth and the driven gear has 10 teeth,what is the gear ratio?​
shepuryov [24]
The on that has ten teeth
6 0
2 years ago
Read 2 more answers
Why or why not the following materials will make good candidates for the construction of
zvonat [6]

Answer:

Answer explained below

Explanation:

3.] a] A turbine blade is the individual component which makes up the turbine section of a gas turbine. The blades are responsible for extracting energy from the high temperature, high pressure gas produced by the combustor.

The turbine blades are often the limiting component of gas turbines. To survive in this difficult environment, turbine blades often use exotic materials like superalloys and many different methods of cooling, such as internal air channels, boundary layer cooling, and thermal barrier coatings. The blade fatigue failure is one of the major source of outages in any steam turbines and gas turbines which is due to high dynamic stresses caused by blade vibration and resonance within the operating range of machinery.

To protect blades from these high dynamic stresses, friction dampers are used.

b] Thermal barrier coatings (TBC) are highly advanced materials systems usually applied to metallic surfaces, such as on gas turbine or aero-engine parts, operating at elevated temperatures, as a form ofexhaust heat management.

These 100μm to 2mm coatings serve to insulate components from large and prolonged heat loads by utilizing thermally insulating materials which can sustain an appreciable temperature difference between the load-bearing alloys and the coating surface.

In doing so, these coatings can allow for higher operating temperatures while limiting the thermal exposure of structural components, extending part life by reducing oxidation and thermal fatigue.

In conjunction with active film cooling, TBCs permit working fluid temperatures higher than the melting point of the metal airfoil in some turbine applications.

Due to increasing demand for higher engine operation (efficiency increases at higher temperatures), better durability/lifetime, and thinner coatings to reduce parasitic weight for rotating/moving components, there is great motivation to develop new and advanced TBCs.

3 0
3 years ago
Describe, in a general form, the equation, in time domain, that tells the voltage across a inductor, L, as a function of time wh
love history [14]

Answer:

a) V(t) = Ldi(t)/dt

b) If current is constant, V = 0

Explanation:

a) The voltage, V(t), across an inductor is proportional to the rate of change of the current flowing across it with time.

If  V represents the Voltage across the inductor

and i(t) represents the current across the inductor in time, t.

V(t) ∝ di(t)/dt

Introducing a proportionality constant,L, which is the inductance of the inductor

The general equation describing the voltage across the inductor of inductance, L, as a function of time when a current flows through it is shown below.

V(t) = Ldi(t)/dt ..................................................(1)

b) If the current flowing through the inductor is constant i.e. does not vary with time

di(t)/dt = 0   and hence the general equation (1) above becomes

V(t) = 0

4 0
3 years ago
Pie charts should have no more than eight segments. True or False?
Pepsi [2]

Answer:

Explanation:

Pie charts generally should have no more than eight segments.

6 0
3 years ago
Read 2 more answers
Other questions:
  • Can anybody teach me how to make an app with flask and pygame together?​
    10·1 answer
  • A worker standing on a freshly mopped floor is
    7·1 answer
  • The water behind Hoover Dam is 206m higher than the Colorado river below it. At what rate must water pass through the hydraulic
    15·2 answers
  • How much heat (Btu) is prod uced by a 150-W light bulb that is on for 20-hours?
    14·1 answer
  • 7. The "3 second rule" is the time you should pause at an intersection marked with a stop sign.
    6·1 answer
  • One who is trained in math, science and physics in order to work in a branch of engineering
    7·2 answers
  • A mechanical system comprises three subsystems in series with reliabilities of 98, 96, and 94 percent. What is the overall relia
    10·1 answer
  • Diffrerentiate y=cos^{4} (3x+1)
    5·1 answer
  • Which of the following was a sustainable power source used during the Middle Ages?
    9·2 answers
  • List six clues that indicates that you are approaching an intersection
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!