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
Groups of atoms having the same magnetic polarity are called​
Ainat [17]

Answer:

Magnetic domains..Sorry if I'm wrong..

8 0
3 years ago
Two heat exchangers are under consideration for purchase. A standard type of heat exchanger (code name HX1) has an initial insta
Leviafan [203]

Answer:

The lower capitalized cost is associated with HX1

Explanation:

The capitalized cost is basically the present cost. Therefore, for the Heat Exchanger HX1, the capitalized cost will be:

CC1 = First Cost

<u>CC1 = - $ 20,000</u>

Negative sign shows cash outflow.

Now, for Heat Exchanger HX2, we have:

CC2 = - $ 34,000 + ($ 4,000)(P/F, 6%, 10)

Now, we use the factor tables to calculate the present worth (P) of the salvage value, which is actually future worth, after 10 years at a compounded interest of 6% per year.

The factor table is provided in picture, with the value indicated.

CC2 = - $ 34,000 + ($ 4,000)(0.5584)

CC2 = - $ 34,000 + $ 2,233.6

<u>CC2 = - $ 31,766.4</u>

From the capitalized cost, taking look at the absolute values of both heat exchangers we can conclude that:

<u>The Heat Exchanger that will result in lower capitalized cost is HX1</u>

3 0
3 years ago
A cooling system load is 96,000 BTUh sensible. How much chilled air is required to satisfy the load if the system is designed fo
Natalija [7]

Answer:

For 20^{\circ} - 5.556 lb/s

For 15^{\circ} - 7.4047 lb/s

Solution:

As per the question:

System Load = 96000 Btuh

Temperature, T = 20^{\circ}

Temperature rise, T' = 15^{\circ}

Now,

The system load is taken to be at constant pressure, then:

Specific heat of air, C_{p} = 0.24 btu/lb ^{\circ}F

Now, for a rise of 20^{\circ} in temeprature:

\dot{m}C_{p}\Delta T = 96000

\dot{m} = \frac{96000}{C_{p}\Delta T} = \frac{96000}{0.24\times 20} = 20000 lb/h = \frac{20000}{3600} = 5.556 lb/s

Now, for 15^{\circ}:

\dot{m}C_{p}\Delta T = 96000

\dot{m} = \frac{96000}{C_{p}\Delta T} = \frac{96000}{0.24\times 15} = 26666.667 lb/h = \frac{26666.667}{3600} = 7.4074 lb/s

4 0
3 years ago
Assume a strain gage is bonded to the cylinder wall surface in the direction of the hoop strain. The strain gage has nominal res
mars1129 [50]

Answer:

5.994 V

Explanation:

The pressure as a function of hoop strain is given:

P = \frac{4*E*t}{D}*\frac{e_{h} }{2-v}

e_{h} = \frac{D*P*(2-v)}{4*E*t} .... Eq1

For wheat-stone bridge with equal nominal resistance of resistors:

V_{out} = \frac{GF*e*V_{in} }{4} .... Eq2

Hence, input Eq1 into Eq2

 V_{out} = \frac{GF*e*V_{in}*D*P*(2-v) }{16*E*t} .....Eq3\\

Given data:

P = 253313 Pa

D = d + 2t = 0.09013 m

t = 65 um

GF = 2

E = 75 GPa

v = 0.33

Use the data above and compute Vout using Eq3

V_{out} = \frac{2*6*0.09013*253313*(2-0.33) }{16*75*10^9*65*10^-6} \\\\V_{out} = 0.006285 V\\\\change in V = 6 - 0.006285 = 5.994 V

6 0
3 years ago
g 2000 m3/d flow from a dairy industry is treated in an activated sludge plant. The BOD5 is 300 mg/L, and most of it is in solub
Effectus [21]

Answer:

a) Volume of acceleration is 758 m³

b) Aeration Period is 0.379 day

c) Return flow is 585.64 m³/d

d) Volume of waste activated is 0.207 m³/d

e) F/M = 0.283

Explanation:

3 0
3 years ago
Other questions:
  • 1. A four-lane freeway (two lanes in each direction) is located on rolling terrain and has 12-ft lanes, no lateral obstructions
    7·1 answer
  • What is the differences between stack and queue?
    11·1 answer
  • Some aircraft component is fabricated from an aluminum alloy that has a plane strain fracture toughness of 35 MPa m . It has bee
    13·1 answer
  • For flow over a flat plate with an extremely rough surface, convection heat transfer effects are known to be correlated by the
    12·1 answer
  • A basketball has a 300-mm outer diameter and a 3-mm wall thickness. Determine the normal stress in the wall when the basketball
    14·1 answer
  • Which option identifies the most likely scaling factor in the above drawing of the Mercury capsule and booster unit? 1:1,000 1:1
    14·1 answer
  • A blizzard is a massive snowstorm. Definitions vary, but for our purposes, we will assume that a blizzard is characterized by bo
    6·1 answer
  • Q1: The first option should always be to get out safely (RUN)
    6·1 answer
  • A length of pipe will weigh the most when
    6·2 answers
  • a) At a particular company, employees are rated at the end of each year. The rating scale begins at 0.0, with higher values indi
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!