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
Bas_tet [7]
3 years ago
5

Write multiple if statements

Engineering
1 answer:
Tatiana [17]3 years ago
3 0

Code:

#include <iostream>

using namespace std;

int main()

{

  int Car_Year;

  cout<<"Please Enter the Car Model."<<endl;

  cin>>Car_Year;    

 if (Car_Year<1967)

 {

cout<<"Few safety features."<<endl;

 }

else if (Car_Year>1971 && Car_Year<=1991)

{

cout<<"Probably has head rests."<<endl;

}

else if (Car_Year>1991 && Car_Year<=2000)

{

cout<<"Probably has antilock brakes."<<endl;

}

else if (Car_Year>2000)

{

cout<<"Probably has airbags."<<endl;

  }

else

{

cout<<"Invalid Selection."<<endl;

}

  return 0;

}

Output:

Please Enter the Car Model.

1975

Probably has head rests.

Please Enter the Car Model.

1999

Probably has antilock brakes.

Please Enter the Car Model.

2005

Probably has airbags.

Please Enter the Car Model.

1955

Few safety features.

Explanation:

We were required to implement multiple If else conditions to assign car model year with the corresponding features of the car.

The code is tested with a wide range of inputs and it returned the same results as it was asked in the question.

You might be interested in
Electrical circuits must be locked-out/tagged-out before electricians work on any equipment. Is this true or false?
dybincka [34]

Answer:

true

Explanation:

Equipment that are "locked-out/tagged-out" <em>prevent the electrician from being electrocuted</em> or attaining a serious injury in relation to it. Locking out an equipment prevents it from releasing its energy because such energy can be <em>hazardous</em> to the electrician. There are instances when the equipment accidentally starts up, thus, it is essential that the equipment's source of energy is<em> isolated.</em>

8 0
3 years ago
Please help will give brainliest please answer all 3
larisa [96]

Answer: For #1 I'm going to go with A because that has to do with biology

For #2 I'm going to go with B oceans because that has to do with plant life (and life in general).

For #3 I'll say marine/maritime engineer (you can just say marine)

Hope it helps!

8 0
3 years ago
Water exiting the condenser of a power plant at 45 Centers a cooling tower with a mas flow rate of 15,000 kg/s. A stream of cool
MariettaO [177]

Answer: hello your question is incomplete below is the missing part

question :Determine the temperature of the cooled water exiting the cooling tower

answer : T  = 43.477° C

Explanation:

Temp of water at exit = 45°C

mass flow rate of cooling tower = 15,000 kg/s

Temp of makeup water = 20°C

Assuming an atmospheric pressure of = 101.3 kPa

<u>Determine temperature of the cooled water exiting the cooling tower</u>

Water entering cooling tower at 45°C

Given that Latent heat of water at 45°C = 43.13 KJ/mol

Cp(wet air) = 1.005+ 1.884(y1)

where: y1 - Inlet mole ratio = (0.01257) / (1 - 0.01257) = 0.01273

Hence : Cp(wet air) = 29.145 +  (0.01273) (33.94) = 29.577 KJ/kmol°C

<u>First step : calculate the value of Q </u>

Q = m*Cp*(ΔT) + W(latent heat)

Q = 321.6968 (29.577) (40-30) +  43.13 (18.26089)

Q =  95935.8547 KJ/s

Given that mass rate of water = 15000 kg/s

<u>Hence the temperature of the cooled water can be calculated using the equation below</u>

Q = m*Cp*∆T

Cp(water) = 4.2 KJ/Kg°C

95935.8547 = (15000)*(4.2)*(45 - T)

( 45 - T ) = 95935.8547/ 63000.    ∴ T  = 43.477° C

5 0
3 years ago
How deep is a 6ft hole?​
Pavlova-9 [17]

Answer:

I know this sounds quite deep but it is as deep as a grave

Explanation:

It's reality

3 0
2 years ago
Read 2 more answers
Comparison of copper and aluminium conductors looking at their properties
Alexeev081 [22]

Answer:

The density of the copper is higher than aluminium. Hence it is heavier compared to aluminium conductors it requires strong structures and hardware to bear the weight. More ductile and has high tensile strength.

...

Aluminium & Copper properties.

Property Copper (Cu) Aluminium (Al)

Density (g/cm3) 8.96 2.70

7 0
3 years ago
Other questions:
  • Practicing new things strains your brain fibers, weakening your ability to make connections.
    13·1 answer
  • Water flows through a tee in a horizontal pipe system. The velocity in the stem of the tee is 15 f t/s, and the diameter is 12 i
    10·1 answer
  • In many problems where the potential energy is considered between two objects, the potential energy is defined as zero when the
    8·1 answer
  • Considering the two tables below called Orders and OrderLines, how many rows would be returned by this SQL query? SELECT o.Order
    10·1 answer
  • Where does Elizabeth want John to do and what does she want him to do there?​
    15·1 answer
  • 3. (20 points) Suppose we wish to search a linked list of length n, where each element contains a key k along with a hash value
    7·1 answer
  • WHAT IS MEANT BY BJT AND FUNCTION OF BJT
    8·1 answer
  • Match the use of the magnetic field to its respective description.​
    6·1 answer
  • Many vehicles have indicator lights telling you when your
    13·1 answer
  • Which type of artificial intelligence (ai) can repeatedly perform tasks of limited scope?
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!