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
Resistance to impact is an example of a(n)
Anika [276]

Answer:

Mechanical property

Explanation:

MECHANICAL PROPERTIES can be defined as the ability of a metal or material to remain undamaged after different type of forces has been applied or used on them because forces or loads are often applied to metal, material or physical properties which is why MECHANICAL PROPERTIES enables us to know the strength , toughness as well as the hardness of metal and the way this metal perform or react when different forces are applied on them.

Lastly any metal, material or physical properties that has the strength , hardness and resistance to withstand or remain unaffected despite the loads or forces use on them is an example of MECHANICAL PROPERTIES.

Therefore Resistance to impact is an example of a(n) MECHANICAL PROPERTIES.

8 0
2 years ago
When you learned about the Highway Transportation system you learned about 6 different types of people as
Musya8 [376]

Answer: 3 different types of people using Highway Transportation system are :

1. Pedestrians - should be given priority while driving.

2. Cyclists - should be given enough space on road.

3. Motorcyclists- should be given enough space on road.

Explanation:

1. Pedestrians - Most of pedestrians use to walk on the footpath along side road that keeps them on a safe side. But there are places without footpath along side road, in that case they have to walk on the road itself. Here, we need to take care for them. We need to wait in case they are crossing road and also check for them while taking a turn.

2. Cyclists - They travel on road but are tough to figure out. They travel at a slower pace compared to cars. To avoid any accident with them, we are supposed to give them enough space which should be equivalent to a car's space.

3. Motorcyclists - They can pass by very closely and also come between lanes. Most of the things to be considered here are same as that of cyclists. Here also, we need to check for them carefully while taking a turn. Also, need to give them enough space.

4 0
3 years ago
Use the concept that y = c, −[infinity] &lt; x &lt; [infinity], is a constant function if and only if y' = 0 to determine whethe
attashe74 [19]

Answer:

attached below

Explanation:

5 0
3 years ago
A 1 turn coil carries has a radius of 9.8 cm and a magnetic moment of 6.2 X 10 -2 Am 2. What is the current through the coil?
Alexus [3.1K]

Answer:

The current through the coil is 2.05 A

Explanation:

Given;

number of turns of the coil, N = 1

radius of the coil, r = 9.8 cm = 0.098 m

magnetic moment of the coil, P = 6.2 x 10⁻² A m²

The magnetic moment is given by;

P = IA

Where;

I is the current through the coil

A is area of the coil = πr² = π(0.098)² = 0.03018 m²

The current through the coil is given by;

I = P / A

I = (6.2 x 10⁻² ) / (0.03018)

I = 2.05 A

Therefore, the current through the coil is 2.05 A

6 0
3 years ago
Water is flowing at a rate of 0.15 ft3/s in a 6 inch diameter pipe. The water then goes through a sudden contraction to a 2 inch
Georgia [21]

Answer:

Head loss=0.00366 ft

Explanation:

Given :Water flow rate Q=0.15 \frac{ft^{3}}{sec}

         D_{1}= 6 inch=0.5 ft

        D_{2}=2 inch=0.1667 ft

As we know that Q=AV

A_{1}\times V_{1}=A_{2}\times V_{2}

So V_{2}=\frac{Q}{A_2}

     V_{2}=\dfrac{.015}{\frac{3.14}{4}\times 0.1667^{2}}

     V_{2=0.687 ft/sec

We know that Head loss due to sudden contraction

           h_{l}=K\frac{V_{2}^2}{2g}

If nothing is given then take K=0.5

So head lossh_{l}=(0.5)\frac{{0.687}^2}{2\times 32.18}

                                    =0.00366 ft

So head loss=0.00366 ft

4 0
3 years ago
Other questions:
  • Define Plastic vs elastic deformation.
    13·1 answer
  • Might give brainliest
    8·1 answer
  • 1. What are the usual symptoms of brake issues?​
    15·1 answer
  • 1)A wheel is used to turn a valve stem on a water valve. If the wheel radius is 1 foot and the stem, (axle), radius is .5 inches
    10·1 answer
  • An ideal reheat Rankine cycle with water as the working fluid operates the boiler at 15,000 kPa, the reheater at 2000 kPa, and t
    13·1 answer
  • A Wii remote flung from a hand through a TV, with a kinetic energy of 1.44J and a mass of 4.5kg. Whats the velocity?
    6·1 answer
  • I wuv little space :)
    8·1 answer
  • Pointttttttttttttssssssssssss
    12·1 answer
  • Christopher has designed a fluid power system that repeatedly gets clogs. Which of the following objects should he choose to add
    13·1 answer
  • All of these are true about steel EXCEPT that:
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!