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]
4 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]4 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
Type the correct answer in the box. Spell all words correctly.
SSSSS [86.1K]

Answer: Type the correct answer in the box. Spell all words correctly.

Which design principle indicates disparity between adjacent parts of a design to give it a striking overall look?

-blank- is disparity between adjacent parts of a design to give it a striking overall look.

Explanation:

8 0
2 years ago
The three sub regions of South America are the Andes Mountains, the Amazon Rainforest, and the Eastern Highlands. The Atacama De
Leto [7]

Answer:

<:

Explanation:

8 0
3 years ago
Read 2 more answers
2. A hammer drill has an adjustable ring that can<br> be turned to adjust the<br> ___.
SOVA2 [1]
Number of drill blows per minute. hope this helps !!
4 0
3 years ago
Trent is designing the grounds for a massive outdoor skate park. He has no experience with skateboarding at all, and although he
alexandr1967 [171]

Answer:

I’m sorry I don’t understand this is there more steps?‍♀️

Explanation:

8 0
3 years ago
Read 2 more answers
Consider two houses that are identical, except that the walls are built using bricks in one house, and wood in the other. The wa
Vesnalui [34]

Answer:

Walls Built Using Bricks and Wood

The brick house is more energy-efficient than the one built with wood.

Explanation:

Because of their high thermal mass, which gives bricks the ability to absorb heat and release it over time, bricks remain more energy-efficient than other building materials, including wood.  In summer, bricks leave your home cool.  In winter, they make it warm.  With these two advantages provided by bricks over other building materials, bricks are the most energy-efficient building material.

5 0
3 years ago
Other questions:
  • A well-insulated, rigid tank, having a volume of 2 m3 , contains saturated water vapor at 120 ◦C. The water is stirred until the
    13·1 answer
  • An engineer devises a scheme for extracting some power from waste process steam. The engineer claims that the steam enters the d
    15·1 answer
  • Which of the following is true about the n-way analysis of variance (ANOVA)?
    6·1 answer
  • Find the equivalent impedance Zeq seen by the source when Vs = 5 cos (2t) v, C = 2 F, R = 1 Ω and L = 1 H. (Give angles in degre
    9·1 answer
  • Deidre has just moved from the sales department into the finance department. On her first day in her new role, she receives an e
    14·1 answer
  • A train consists of a 50 Mg engine and three cars, each having a mass of 30 Mg . If it takes 75 s for the train to increase its
    8·1 answer
  • 8. What is the purpose of the 300 Log?
    12·1 answer
  • Which of the following types of protective equipment protects workers who are passing by from stray sparks or metal while anothe
    12·1 answer
  • The moisture content in air (humidity) is measured by weight and expressed in pounds or ____________________.
    14·1 answer
  • error: request for member 'setcursor' in 'oled', which is of non-class type 'adafruit ssd1306(int, int)' oled.setcursor(x, accel
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!