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
What are the nine Historical periods?
Rufina [12.5K]

Answer:

https://quizlet.com/148993376/the-nine-distinct-periods-of-time-flash-cards/

Explanation:

you can find them all : )

7 0
2 years ago
Cómo se llama el componente, que permite abrir o cerrar un circuito eléctrico
Korolek [52]
Creo haber leído sobre esto..Un “interruptor” yo diría
5 0
3 years ago
Which two is right about febuary 14
igor_vitrenko [27]

Answer:A and B

Explanation:

3 0
3 years ago
Read 2 more answers
Wet steam at 15 bar is throttled adiabatically in a steady-flow process to 2 bar. The resulting stream has a temperature of 130°
cricket20 [7]

Answer:

\Delta s = 0.8708\,\frac{kJ}{kg\cdot K}

Explanation:

The adiabatic throttling process is modelled after the First Law of Thermodynamics:

m\cdot (h_{in} - h_{out}) = 0

h_{in} = h_{out}

Properties of water at inlet and outlet are obtained from steam tables:

State 1 - Inlet (Liquid-Vapor Mixture)

P = 1500\,kPa

T = 198.29\,^{\textdegree}C

h = 2726.9\,\frac{kJ}{kg}

s = 6.3068\,\frac{kJ}{kg\cdot K}

x = 0.967

State 2 - Outlet (Superheated Vapor)

P = 200\,kPa

T = 130\,^{\textdegree}C

h = 2726.9\,\frac{kJ}{kg}

s = 7.1776\,\frac{kJ}{kg\cdot K}

The change of entropy of the steam is derived of the Second Law of Thermodynamics:

\Delta s = 7.1776\,\frac{kJ}{kg\cdot K} - 6.3068\, \frac{kJ}{kg\cdot K}

\Delta s = 0.8708\,\frac{kJ}{kg\cdot K}

6 0
3 years ago
How would you design a wheelchair for wheelchair-using basketball players? Would you make it more or less massive?
emmainna [20.7K]
Less, if it’s too big: hard to control and maneuverability for shooting wouldn’t be that good. a smaller wheelchair allows for faster movement and control, along with easier shooting and upper body movement
6 0
2 years ago
Other questions:
  • Water flovs in a pipe of diameter 150 mm. The velocity of the water is measured at a certain spot which reflects the average flo
    13·1 answer
  • Vapor lock occurs when the gasoline is cooled and forms a gel, preventing fuel flow and
    7·2 answers
  • Find the minimum diameter of an alloy, tensile strength 75 MPa, needed to support a 30 kN load.
    14·1 answer
  • An uncovered swimming pool loses 1.0 inch of water off its 1,000 ft^2 surface each week due to evaporation. The heat of vaporiza
    14·1 answer
  • A piston-cylinder device contains 0.15 kg of air initially at 2 MPa and 350 °C. The air is first expanded isothermally to 500 kP
    15·1 answer
  • Some connecting rods have ____ to help lubricate the cylinder wall or piston pin.
    12·2 answers
  • Express the unsteady angular momentum equation in vector form for a control volume that has a constant moment of inertia I, no e
    9·1 answer
  • Question 3 (5 points)
    7·1 answer
  • Anything you want to do in Hootsuite can be found in the ________, with the main workspace in the _________?
    15·1 answer
  • A logic circuit with 3 gates and 2 inputs. The circuit will be read from the final output to the inputs.
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!