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]
2 years ago
5

Write multiple if statements

Engineering
1 answer:
Tatiana [17]2 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
Quinn’s relatives relayed a story about putting on a headset and seeing a digital world that they could walk around in and explo
Kryger [21]

Answer:

I know it is C)Virtual reality

Explanation:

Look at the clues

story about putting on a headset ( virtual reality head set!)

seeing a digital world (A virtual reality world)

they could walk around in (Fake walking you are basically jogging in place)

explore in order to see what ancient Benin looked like (Looking at a real place only digitally)

as if they were really there ( they think they are actually there)

The only reason I know all of this is because I have done virtual reality multiple times and I LOVED it SUPER fun ( I was doing archery) :) Hope this helps!

6 0
2 years ago
Read 2 more answers
The forming section of a plastics plant puts out a continuous sheet of plastic that is 1.2 m wide and 2 mm thick at a rate of 15
KATRIN_1 [288]

Answer:

attached below

Explanation:

7 0
2 years ago
AC motor characteristics require the applied voltage to be proportionally adjusted by an AC drive whenever the frequency is chan
Margarita [4]
The answer is false
6 0
3 years ago
Read 2 more answers
The privilege of driving comes with
julsineya [31]
The privilege of driving comes with responsibility
5 0
2 years ago
When CO2 rises, temperature rises. Why do you think this is?
icang [17]

Answer:

The warming causes the oceans to release CO2. The CO2 amplifies the warming and mixes through the atmosphere, spreading warming throughout the planet. So CO2 causes warming AND rising temperature causes CO2 rise. Overall, about 90% of the global warming occurs after the CO2 increase.

Explanation:

6 0
2 years ago
Other questions:
  • A furnace wall consisting of 0.25 m of fire clay brick, 0.20 m of kaolin, and a 0.10‐m outer layer of masonry brick is exposed t
    8·1 answer
  • A civil engineer is asked to design a curved section of roadway that meets the following conditions: With ice on the road, when
    13·1 answer
  • Power is a fundamental dimension. a) True b) False
    15·1 answer
  • A cylindrical specimen of a titanium alloy having an elastic modulus of 107 GPa (15.5 × 106 psi) and an original diameter of 3.7
    14·1 answer
  • When testing a compressor with an ohm meter, a technician read 2 ohms between the start terminal and the case of the compressor.
    5·1 answer
  • Users say that the game is interesting to look at but the music gets annoying
    9·1 answer
  • Use superpositions find​
    8·1 answer
  • Un conejo puede recorrer una distancia de 90 m en 7 segundos .Cual es su velocidad?
    5·1 answer
  • What three training organizations are important for Union Masons?
    14·1 answer
  • ANSWER QUICK
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!