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
__________ affect(s) the amount of air conditioning required.
Grace [21]

Answer:

Option D

All the above

Explanation:

Depending with the number of occupants in a building, the number of air conditioners required can either be increased or reduced. For instance, if the building is to be a classroom of over 50 students, 1 air-conditioner can't serve effectively. Similarly, the activity of occupants also dictate the amount of air conditioners required since if it's a gym room where occupants exercise often then the air conditioners required is different from if the room was to serve as a  lounge. The appliances that also operate in a room require that air conditioners be installed as per the heat that may be generated by the appliances.

5 0
3 years ago
Deidre has just moved from the sales department into the finance department. On her first day in her new role, she receives an e
melisa1 [442]

Answer:

 d. The company uses role-based access control and her user account hasn't been migrated into the correct group(s) yet

Explanation:

Since Deidre is accessing her e-mail there appears to be nothing wrong with her account or password. Since her role is new, most likely the problem is associated with her new role.

3 0
2 years ago
g A circular oil slick of uniform thickness is caused by a spill of one cubic meter of oil. The thickness of the oil slick is de
Anika [276]

Answer:

the rate of increase of radius is dR/dt = 0.804 m/hour = 80.4 cm/hour

Explanation:

the slick of oil can be modelled as a cylinder of radius R and thickness h, therefore the volume V is

V = πR² * h

thus

h = V / (πR²)

Considering that the volume of the slick remains constant, the rate of change of radius will be

dh/dt = V d[1/(πR²)]/dt

dh/dt = (V/π) (-2)/R³ *dR/dt

therefore

dR/dt = (-dh/dt)* (R³/2) * (π/V)

where dR/dt = rate of increase of the radius , (-dh/dt)= rate of decrease of thickness

when the radius is R=8 m , dR/dt is

dR/dt = (-dh/dt)* (R³/2) * (π/V) = 0.1 cm/hour *(8m)³/2 * π/1m³ *(1m/100 cm)= 0.804 m/hour = 80.4 cm/hour

4 0
3 years ago
I really need help ASAP!!!
ValentinkaMS [17]

Explanation:

He would work on the thing like in the method you work on your question.

8 0
3 years ago
When they say in the United States that a car’s tire is filled “to 32 lb,”​ they mean that <br>its internal pressure is 32 lbf/i
arsen [322]

Answer:

0.71 lbf

Explanation:

Use ideal gas law:

PV = nRT

where P is absolute pressure,

V is volume,

n is number of moles,

R is universal gas constant,

and T is absolute temperature.

The absolute pressure is the sum of the atmospheric pressure and the gauge pressure.

P = 32 lbf/in² + 14.7 lbf/in²

P = 46.7 lbf/in²

Absolute temperature is in Kelvin or Rankine:

T = 75 + 459.67 R

T = 534.67 R

Given V = 3.0 ft³, and R = 10.731 ft³ psi / R / lb-mol:

PV = nRT

(46.7 lbf/in²) (3.0 ft³) = n (10.731 ft³ psi / R / lb-mol) (534.67 R)

n = 0.02442 lb-mol

The molar mass of air is 29 lbm/lb-mol, so the mass is:

m = (0.02442 lb-mol) (29 lbm/lb-mol)

m = 0.708 lbm

The weight of 1 lbm is lbf.

W = 0.708 lbf

Rounded to two significant figures, the weight of the air is 0.71 lbf.

3 0
3 years ago
Other questions:
  • 4. Water vapor enters a turbine operating at steady state at 1000oF, 220 lbf/in2 , with a volumetric flow rate of 25 ft3/s, and
    8·1 answer
  • Based in bonding theory, explain why heat capacity increases when you consider metals, ceramics and polymers.
    14·1 answer
  • Use the convolutional integral to find the response of an LTI system with impulse response ℎ(????) and input x(????). Sketch the
    8·1 answer
  • Given the following data, plot the stress-strain curves for the two unknown materials on the same set of stress-strain axes. Den
    9·1 answer
  • Describe three differences between liquids and gases in fluid power systems.<br> Help !!!
    5·1 answer
  • The air velocity in the duct of a heating system is to be measured by a Pitot-static probe inserted into the duct parallel to th
    13·1 answer
  • Draw the sequence of BSTs that results when you insert the keys E, A, S, Y, Q, U, E, S, T, I, O, N, in that order into an initia
    10·1 answer
  • How to change a fuel fiter
    12·1 answer
  • Rotating magnetic field inside a set of conducting wires is a simple description of a what
    14·1 answer
  • Write a statement that calls the recursive method backwardsAlphabet() with parameter startingLetter.
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!