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 first thing you should do is develop a ____________________ to determine what vehicle you can afford.
swat32

The first thing you should do is develop a <u>budget</u> to determine what vehicle you can afford.

<h3>What is an automobile?</h3>

An automobile is also referred to as a vehicle, car or motorcar and it can be defined as a four-wheeled vehicle that is designed and developed to be propelled by an internal-combustion (gasoline) engine, especially for the purpose of transportation from one location to another.

<h3>What is a budget?</h3>

A budget can be defined as a financial plan that is typically used for the estimation of revenue and expenditures of an individual, business organization or government for a specified period of time, often one year.

In this context, we can reasonably infer and logically deduce that the first thing anyone should do is to develop a <u>budget</u> in order to determine what vehicle they can afford.

Read more on budget here: brainly.com/question/13964173

#SPJ1

7 0
1 year ago
11. Which of these is NOT true when dealing with refrigerants?
Alexus [3.1K]
Answer is an increase in pressure will cause an decrease in the pressure
4 0
3 years ago
A horse pulls a cart along a road with a force of 550 lbs. If the horse does 2,674,100 ftlbs of work by the time it stops, how f
BartSMP [9]

Answer:

When a horse pull a cart the action is on?

A horse is harnessed to a cart. If the horse tries to pull the cart, the horse must exert a force on the cart. By Newton's third law the cart must then exert an equal and opposite force on the horse. Newton's second law tells us that acceleration is equal to the net force divided by the mass of the system.

Explanation:

5 0
3 years ago
Read 2 more answers
tech A says that a Hall-effect sensor can be used in an electronic ignition system. Tech B says that an optical-type sensor can
Alex

Answer:

<em>Both Tech A and Tech B are correct.</em>

<em>Explanation:</em>

<em>The Hall effect sen sensor are used to control displacements and rotations of various body components  of the vehicles, engine vibrations , and the ignition   system</em>

<em>The  optical-type sensor converts rays of light  into electronic signals. It measures the quantity physically of which the translates to a form that is understandable or readable  by an instrument. An optical sensor is larger part of a  system that integrates light sources, a device for measuring  and the optical sensor, which therefore is usually  connected to an electrical trigger.</em>

6 0
3 years ago
Consider steady, incompressible, laminar flow of a Newtonian fluid in an infinitely long round pipe annulus of inner radius Ri a
svetlana [45]

Answer:

is it multiple choice?

Explanation:

8 0
3 years ago
Other questions:
  • A fluid has a dynamic viscosity of 0.048 Pa.s and a specific gravity of 0.913. For the flow of such a fluid over a flat solid su
    10·1 answer
  • Thermal conductivity of AISI 316 Stainless Steel at 90ºC is 14.54 W/m K. Convert this value to IP system.
    8·1 answer
  • A soil has the following Green-Ampt parameters Effective porosity 0.400 Initial volumetric moisture content-15% Hydraulic Conduc
    6·1 answer
  • A signalized intersection approach has three lanes with no exclusive left or right turning lanes. The approach has a 40-second g
    10·1 answer
  • Liquid water is fed to a boiler at 24°C and 10 bar is converted at a constant pressure to saturated steam.
    12·1 answer
  • Why why why why why why why
    7·2 answers
  • A compressor receives air at 290 K, 95 kPa and shaft work of 5.5 kW from a gasoline engine. It should deliver a mass flow rate o
    7·1 answer
  • A dual-fluid heat exchanger has 10 lbm/s water entering at 100 F, 20 psia and leaving at 50 F, 20 psia. The other fluid is glyco
    13·1 answer
  • What is the primary difference between the process of lost-wax casting as practiced in ancient times and that same process today
    13·1 answer
  • Which of the given strategies is specifically a competitive advantage sustainment strategy?
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!