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
The brakes are being bled on a passenger vehicle with a disc/drum brake system. Technician A says that the drums should be remov
exis [7]

The brakes are being bled on a passenger vehicle with a disc/drum brake system is described in the following

Explanation:

1.Risk: Continued operation at or below Rotor Minimum Thickness can lead to Brake system failure. As the rotor reaches its minimum thickness, the braking distance increases, sometimes up to 4 meters. A brake system is designed to take kinetic energy and transfer it into heat energy.

2.Since the piston needs to be pushed back into the caliper in order to fit over the new pads, I do open the bleeder screw when pushing the piston back in. This does help prevent debris from traveling back through the system and contaminating the ABS sensors

3.There are three methods of bleeding brakes: Vacuum pumping. Pressure pumping. Pump and hold.

4,Brake drag is caused by the brake pads or shoes not releasing completely when the brake pedal is released. ... A worn or corroded master cylinder bore causes excess pedal effort resulting in dragging brakes. Brake Lines and Hoses: There may be pressure trapped in the brake line or hose after the pedal has been released.

4 0
3 years ago
Determine the deflection at the center of the beam. Express your answer in terms of some or all of the variables LLL, EEE, III,
Rom4ik [11]

Answer:

See explanations for step by step procedures to get answer.

Explanation:

Given that;

Determine the deflection at the center of the beam. Express your answer in terms of some or all of the variables LLL, EEE, III, and M0M0M_0. Enter positive value if the deflection is upward and negative value if the deflection is downward.

4 0
3 years ago
What is the ANSI B paper size also know as?
krek1111 [17]

Answer:

ANSI A sized paper is commonly referred to as Letter and ANSI B as Ledger or Tabloid.

Explanation:

7 0
3 years ago
How do you get A's in school
soldier1979 [14.2K]
By being attentive in classes, taking good notes and making sure to put time fourth into your grades.
5 0
3 years ago
Read 2 more answers
Javier is well versed in computer-aided design and is adept at spatial reasoning. What other skill would be
snow_tiger [21]
Surveying and cartography
5 0
2 years ago
Read 2 more answers
Other questions:
  • Using the celsius_to_kelvin function as a guide, create a new function, changing the name to kelvin_to_celsius, and modifying th
    5·1 answer
  • Why is flexibility the most obvious benefit of road transportation select all that apply
    10·1 answer
  • Set up the following characteristic equations in the form suited to Evanss root-locus method. Give L(s), a(s), and b(s) and the
    8·1 answer
  • Select the characteristics of an ideal operational amplifier.
    5·1 answer
  • The size of Carvins Cove water reservoir is 3.2 billion gallons. Approximately, 11 cfs of water is continuous withdrawn from thi
    11·1 answer
  • A 1000-turn coil of wire 1.0 cm in diameter is in a magnetic field that increases from 0.10 T to 0.30 T in 10 ms. The axis of th
    12·1 answer
  • For some transformation having kinetics that obey the Avrami equation (Equation 10.17), the parameter n is known to have a value
    12·1 answer
  • Employees cannot be held legally responsible for an environmental violation.
    14·1 answer
  • A rigid insulated tank is divided into 2 equal compartments by a thin rigid partition. One of the compartments contains air, ass
    5·1 answer
  • This is various straps secured on a worker to distribute the fall arrest forces. What is depicted in the image?
    6·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!