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
What's the best way to find the load capacity of a crane? Select the best option. Call the manufacturer Ask co-workers Look at t
Orlov [11]

Answer: You need to lift a load of 15 tons (30,000 pounds) a distance of 25 feet. The distance is measured from the center pin of the crane to the center of the load. Once you determine the distance, look on that line for the largest capacity; that will indicate how many feet of boom must be extended

Explanation:

5 0
3 years ago
The minimum recommended standards for the operating system, processor, primary memory (RAM), and storage capacity for certain so
nlexa [21]

Answer:System requirements

Explanation:

its right.

8 0
2 years ago
Read 2 more answers
Match the description with the term. I need help
mel-nik [20]

Answer:

cultivation - preparing and planting crops

domestication - capturing, taming, and breeding animals

hunting and gathering - obtaining food from the wild

Explanation:

moo

6 0
3 years ago
Meaning of temporary stitches​
algol13

Answer:

They are use to hold garment or fabric pieces together before pernament stitches are made

6 0
2 years ago
Read 2 more answers
Jordan's dad made a new recipe for dinner. Jordan looked at the food and saw that it was white, yellow, and purple in color. She
zhenek [66]

Answer:

Jordan used her eyes to see the food, her touch to feel the food, and her nose to smell the food, and lastly, but most importantly, she used her mouth to taste the food.

7 0
2 years ago
Other questions:
  • Why is a building considered a type of system?
    6·1 answer
  • Technician A says ASE certification is mandatory in all 50 states before performing an automotive repair for pay. Technician B s
    12·1 answer
  • Not much of a question :/ dont answer
    9·1 answer
  • 3- A cylinder with 0.4kg of Nitrogen gas at 27ºC keeps under pressure by a frictionless piston. Weight of this piston will incre
    6·1 answer
  • Air expands through an ideal turbine from 1 MPa, 900 K to 0.1 MPa, 500K. The inlet velocity is small compared to the exit veloci
    10·1 answer
  • Considering the two tables below called Orders and OrderLines, how many rows would be returned by this SQL query? SELECT o.Order
    10·1 answer
  • A force of 16,000 will cause a 1 1 bar of magnesium to stretch from 10 to 10.036 . Calculate the modulus of elasticity in . (Ent
    6·1 answer
  • Which definition best fits the idea of electrical resistance in a wire? A. the decrease in current flow due to electrons collidi
    12·1 answer
  • The production of carbon dioxide makes it unwise and unsafe to operate a tractor or any motor vehicle inside enclosed spaces suc
    13·1 answer
  • NO SCAMS
    9·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!