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]
4 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]4 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
Close to 16 billion pounds of ethylene glycol (EG) were produced in 2013. It previously ranked as the twenty-sixth most produced
bekas [8.4K]

Answer:

a) 0.684

b) 0.90

Explanation:

Catalyst

EO + W → EG

<u>a) calculate the conversion exiting the first reactor </u>

CAo = 16.1 / 2   mol/dm^3

Given that there are two stream one  contains 16.1 mol/dm^3 while the other contains   0.9 wt% catalyst

Vo = 7.24 dm^3/s

Vm = 800 gal = 3028 dm^3

hence Im = Vin/ Vo = (3028 dm^3) / (7.24dm^3/s) = 418.232 secs = 6.97 mins

next determine the value of conversion exiting the reactor ( Xai ) using the relation below

KIm = \frac{Xai}{1-Xai}  ------ ( 1 )

make Xai subject of the relation

Xai = KIm / 1 + KIm  ---  ( 2 )

<em>where : K = 0.311 ,  Im = 6.97   ( input values into equation 2 )</em>

Xai = 0.684

<u>B) calculate the conversion exiting the second reactor</u>

CA1 = CA0 ( 1 - Xai )

therefore CA1 = 2.5438 mol/dm^3

Vo = 7.24 dm^3/s

To determine the value of the conversion exiting the second reactor  ( Xa2 ) we will use the relation below

XA2 = ( Xai + Im K ) / ( Im K + 1 ) ----- ( 3 )

<em> where : Xai = 0.684 , Im = 6.97,  and K = 0.311  ( input values into equation 3 )</em>

XA2 = 0.90

<u />

<u />

<u />

4 0
3 years ago
A Class A fire extingisher is for use on general combustibles such as:​
Tatiana [17]

Answer:

used for ordinary combustibles, such as wood, paper, some plastics, and textiles. This class of fire requires the heat-absorbing effects of water or the coating effects of certain dry chemicals.

Explanation:

7 0
3 years ago
21. How long can food that requires time-temperature control be left in the danger zone?
dimulka [17.4K]

Answer: A maximum of 1 hour

Explanation:

Read your lesson buddy!!

8 0
3 years ago
Read 2 more answers
Your driver license will be _____ if you race another driver on a public road, commit a felony using a motor vehicle, or are fou
Georgia [21]

Hello there,

In the problems given in the question, the driver's license is confiscated and suspended.

So our answer is: A)

Achievements.

6 0
4 years ago
Read 2 more answers
Zachary finished an internship as a Software Quality Assurance Engineer. For which job is he best qualified?
astra-53 [7]

Answer:

B. A software development firm needs someone to find and fix bugs on multiple computer platforms.

Explanation:

A software quality assurance engineer is someone who monitors every phase of the software development process so as to ensure design quality, making sure that the software adheres to the standards set by the development company. Finding bugs would make this intern a amazing bug finder

6 0
3 years ago
Read 2 more answers
Other questions:
  • The net potential energy EN between two adjacent ions, is sometimes represented by the expression
    13·1 answer
  • A slight breeze is blowing over the hot tub above and yields a heat transfer coefficient h of 20 W/m2 -K. The air temperature is
    15·1 answer
  • Tranquilizing drugs that inhibit sympathetic nervous system activity often effectively reduce people's subjective experience of
    8·1 answer
  • Consider a two-dimensional incompressible velocity potential phi = ???????? cos theta + ????????theta, where B and L are constan
    8·1 answer
  • Write a statement that increases numPeople by 5. Ex: If numPeople is initially 10, the output is: There are 15 people.
    11·1 answer
  • (30 pts) A simply supported beam with a span L=20 ft and cross sectional dimensions: b=14 in; h=20 in; d=17.5 in. is reinforced
    13·1 answer
  • You are hired as the investigators to identify the root cause and describe what should have occurred based on the following info
    9·1 answer
  • Please help, Artificial Intelligence class test
    12·1 answer
  • What is the difference between the elements of design and the principles of design? Define at
    7·1 answer
  • The southernmost rim inlet elevation on the topographical survey is
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!