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
shepuryov [24]
3 years ago
12

Write multiple if statements. If car_year is 1969 or earlier, print "Few safety features." If 1970 or later, print "Probably has

seat belts." If 1990 or later, print "Probably has antilock brakes." If 2000 or later, print "Probably has airbags." End each phrase with a period and a newline. Sample output for input: 1995
Engineering
1 answer:
Slav-nsk [51]3 years ago
5 0

Answer:

Explanation along with code and output results is provided below.

C++ Code:

#include <iostream>

using namespace std;

int main()

{

   int year;

   cout<<"Enter the car model year."<<endl;

   cin>>year;    

  if (year<=1969)

  {

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

  }

else if (year>=1970 && year<1989)

{

cout<<"Probably has seat belts."<<endl;

}

else if (year>=1990 && year<1999)

{

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

}

else if (year>=2000)

{

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

   }

   return 0;

}

Explanation:

The problem was to print feature messages of a car given its model year.

If else conditions are being used incorporate the logic. The code has been tested with several inputs and got correct output results.

Output:

Enter the car model year.

1961

Few safety features.

Enter the car model year.

1975

Probably has seat belts.

Enter the car model year.

1994

Probably has antilock brakes.

Enter the car model year.

2005

Probably has airbags.

You might be interested in
What is a Flame Front Generator?
Inessa [10]

Answer and Explanation:

Flame Front Generator: It is a ignition system which is very useful in flaring system .In this system the air and gases are mixed together and make a combustible air gas mixture. There is a flame front region where the combustion reaction takes place , it is the region where gases as like hydrogen and air mixed with each other and form combustible gases.

7 0
2 years ago
Can some please help me with my questions. The Questions are in these two pictures below. I don't know how to do this question.
ololo11 [35]

Answer: ok if you need help go to help me with a question.com

Explanation:

5 0
3 years ago
Interpret the assembly program below: MOV R3,R0;
Reika [66]

Answer:

Explanation:

1.  With the operands R0, R1, the program would compute AND operation and ADD operation .

2. The operands could truly be signed 2's complement encoded (i.e Yes) .

3. The overflow truly occurs when two numbers that are unsigned were added and the result is larger than the capacity of the register, in that situation, overflow would occur and it could corrupt the data.

 When the result of an operation is smaller in magnitude than the smallest value represented by the data type, then arithmetic underflow will occur.

7 0
3 years ago
You were hoping to receive a scholarship for volleyball and are entering your personal information and statistics on a secure we
kozerog [31]
I think it is fair to say 5 and 3/4 inches.
6 0
2 years ago
Read 2 more answers
Explain the working of McLeod gauge for measurement of very low pressure.
AfilCa [17]

Explanation:

McLeod gauge:

  It is used to measure very low pressure of gas.It measure gas pressure by the help of mercury(Hg).it measure absolute pressure of gas.

McLeod gauge on the principle of Boyle's law.Boyle's law state that ,at constant temperature the pressure of gas is directly proportional to its  volume.From Boyle's law

P_1V_1=P_2V_2

A sample of gas is taken from vacuum then its pressure is measured by help  Hg.

4 0
3 years ago
Other questions:
  • For the following gear train, if the blue gear is moving at 50 rpm, what are the speeds of the other gears?
    14·1 answer
  • What is the heights part of Maine?
    5·1 answer
  • Three tool materials (high-speed steel, cemented carbide, and ceramic) are to be compared for the same turning operation on a ba
    10·1 answer
  • Plot the absorbance, A, versus the FeSCN2 concentration of the standard solutions (the values from your Pre-lab assignment). Fro
    7·1 answer
  • Locate the centroid y¯ of the composite area. Express your answer to three significant figures and include the appropriate units
    15·1 answer
  • Is the COP of a heat pump always larger than 1?
    10·1 answer
  • This question allows you to practice proving a language is non-regular via the Pumping Lemma. Using the Pumping Lemma (Theorem 1
    10·1 answer
  • If 3 varies inversely as x and y=2 when x=25, find x when y=40
    7·1 answer
  • Find the value of L
    9·1 answer
  • What is a voltage divider circuit and how do you calculate the voltage across one element in a series
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!