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
Write a Python program that does the following. Create a string that is a long series of words separated by spaces. The string i
dybincka [34]

Answer:

The code is attached.

Explanation:

I created a string s including 6 colors with spaces in between. Then I converted the string into a list x by using split() method. I used three different methods for removing elements from the list. These methods are remove(), pop() and del.

\\ Then I used methods append(), insert() and extend() for adding elements to the list.

\\ Finally I converted list into a string using join() and adding space in between the elements of the list.

4 0
3 years ago
An engineer designs a new bus that can drive 30 miles per gallon of fuel. Which of the following was likely one of the client’s
Marat540 [252]
What are the options?
7 0
3 years ago
Read 2 more answers
Which of the following is a common use for commas?
andreyandreev [35.5K]

Answer:

connecting two independent clauses

4 0
3 years ago
Read 2 more answers
How does a 2.5 MW wind turbine costing $ 4 million compare to a 5-kw wind turbine $3 /W? a) Same $/w b) Smaller $/w c) Larger $/
My name is Ann [436]
MW means megawatt, and one megawatt is a million Watts.
The 2.5 MW turbine is 4/2.5=1.6 $/w
Answer B
4 0
3 years ago
An engine indicator is used to determine the following: (a) speed (d) m.e.p, and IHP (e) BHP (b) temperature (c) volume of cylin
Greeley [361]

Answer:

Option (d) MEP and IHP

Explanation:

MEP stands for Mean Effective Pressure and IHP stands for Indicated Horse Power

In engines (Internal Combustion), engine indicator is generally to indicate the indicate the changes in pressure inside the cylinder of an Internal Combustion Engine or IC engines. Once, Mean Effective Pressure of the engine is calculated it further helps to calculate the Horse power and both these quantities, i.e., MEP and IHP are displayed on the engine indicator.

8 0
3 years ago
Other questions:
  • A mixing basin in a sewage filtration plant is stirred by a mechanical agitator with a power input/WF L T=. Other parameters de
    8·1 answer
  • When watching your weight, you want to snack smart. To do that, you want a snack that is going to __________.
    13·1 answer
  • Consider the circuit below where R1 = R4 = 5 Ohms, R2 = R3 = 10 Ohms, Vs1 = 9V, and Vs2 = 6V. Use superposition to solve for the
    15·1 answer
  • Question 11 (1 point)
    12·1 answer
  • How to get on your screen on 2k20 in every mode
    15·2 answers
  • Complete the following sentence. The skills and content of several subject areas were combined to form a new field known as a me
    12·2 answers
  • Plateau Creek carries 5.0 m^3 /s of water with a selenium (Se) concentration of 0.0015 mg/L. A farmer withdraws water at a certa
    12·1 answer
  • What are the environmental factors that cause the formation of rust?
    7·1 answer
  • The cylinder C is being lifted using the cable and pulley system shown.
    8·1 answer
  • What do you mean by decentralization??​
    15·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!