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
Saturated water vapor undergoes a throttling process from 1bar to a 0.35bar. What is the change in temperature for this process?
mamaluj [8]

Answer:

-25.63°C.

Explanation:

We know that throttling is a constant enthalpy process

      h_1=h_2

From steal table

We know that if we know only one property in side the dome then we will find the other property by using steam property table.

  Temperature at saturation pressure 1 bar is 99.63°C and  Temperature at saturation pressure 0.35 bar is about 74°C .

So from above we can say that change in temperature is -25.63°C.

But there is no any option for that .

4 0
3 years ago
Consider an area-source box model for air pollution above a peninsula of land. The length of the box is 15 km, its width is 80 k
In-s [12.5K]

Consider an area-source box model for air pollution above a peninsula of land. The length of the box is 15 km, its width is 80 km, and a radiation inversion restricts mixing to 15 m. Wind is blowing clean air into the long dimension of the box at 0.5 m/s. On average, there are 250,000 vehicles on the road, each being driven 40 km in 2 hours and each emitting 4 g/km of CO.

Required:

a. Estimate the steady-state concentration of CO in the air. Should the city be designated as "nonattainment" (i.e., steady-state concentration is over the NAAQS standard)?

b. Find the average rate of CO emissions during this two-hour period.

c. If the windspeed is zero, use the formula to derive relationship between CO and time and use it to find the CO over the peninsula at 6pmConsider an area-source box model for air pollution above a peninsula of land. The length of the box is 15 km, its width is 80 km, and a radiation inversion restricts mixing to 15 m. Wind is blowing clean air into the long dimension of the box at 0.5 m/s. On average, there are 250,000 vehicles on the road, each being driven 40 km in 2 hours and each emitting 4 g/km of CO.

Required:

a. Estimate the steady-state concentration of CO in the air. Should the city be designated as "nonattainment" (i.e., steady-state concentration is over the NAAQS standard)?

b. Find the average rate of CO emissions during this two-hour period.

c. If the windspeed is zero, use the formula to derive relationship between CO and time and use it to find the CO over the peninsula at 6pmConsider an area-source box model for air pollution above a peninsula of land. The length of the box is 15 km, its width is 80 km, and a radiation inversion restricts mixing to 15 m. Wind is blowing clean air into the long dimension of the box at 0.5 m/s. On average, there are 250,000 vehicles on the road, each being driven 40 km in 2 hours and each emitting 4 g/km of CO.

Required:

a. Estimate the steady-state concentration of CO in the air. Should the city be designated as "nonattainment" (i.e., steady-state concentration is over the NAAQS standard)?

b. Find the average rate of CO emissions during this two-hour period.

c. If the windspeed is zero, use the formula to derive relationship between CO and time and use it to find the CO over the peninsula at 6pm

<em><u>p</u></em><em><u>lease</u></em><em><u> mark</u></em><em><u> me</u></em><em><u> as</u></em><em><u> brainliest</u></em><em><u>.</u></em><em><u>.</u></em><em><u>.</u></em><em><u>.</u></em><em><u>.</u></em><em><u>.</u></em><em><u>.</u></em><em><u>.</u></em><em><u>.</u></em><em><u>.</u></em><em><u>.</u></em><em><u>.</u></em><em><u>.</u></em><em><u>.</u></em><em><u>.</u></em>

<em><u>f</u></em><em><u>ollow</u></em><em><u> me</u></em><em><u>.</u></em><em><u>.</u></em><em><u>.</u></em><em><u>.</u></em><em><u>.</u></em><em><u>.</u></em><em><u>.</u></em><em><u>.</u></em><em><u>.</u></em><em><u>.</u></em><em><u>.</u></em><em><u>.</u></em><em><u>.</u></em><em><u>,</u></em><em><u>.</u></em><em><u>.</u></em><em><u>.</u></em>

3 0
3 years ago
What is 94*738^389428394
Lady_Fox [76]

Answer:

undefined

Explanation:

3 0
3 years ago
What is the maximal coefficient of performance of a refrigerator which cools down 10 kg of water (and then ice) to -6C. Upper he
inysia [295]

Given:

Temperature of water, T_{1} = -6^{\circ}C =273 +(-6) =267 K

Temperature surrounding refrigerator, T_{2} = 21^{\circ}C =273 + 21 =294 K

Specific heat given for water, C_{w} = 4.19 KJ/kg/K

Specific heat given for ice, C_{ice} = 2.1 KJ/kg/K

Latent heat of fusion,  L_{fusion} = 335KJ/kg

Solution:

Coefficient of Performance (COP) for refrigerator is given by:

Max COP_{refrigerator} = \frac{T_{2}}{T_{2} - T_{1}}

= \frac{267}{294 - 267} = 9.89

Coefficient of Performance (COP) for heat pump is given by:

Max COP_{heat pump} = \frac{T_{1}}{T_{2} - T_{1}}\frac{294}{294 - 267} = 10.89

6 0
4 years ago
A vertical cylinder (Fig. P3.227) has a 61.18-kg piston locked with a pin, trapping 10 L of R-410a at 10◦C with 90% quality insi
Whitepunk [10]

Hey! How are you? My name is Maria, 19 years old. Yesterday broke up with a guy, looking for casual sex.

Write me here and I will give you my phone number - *pofsex.com*

My nickname - Lovely

4 0
3 years ago
Other questions:
  • Practicing new things strains your brain fibers, weakening your ability to make connections.
    13·1 answer
  • A forklift raises a 90.5 kg crate 1.80 m. (a) Showing all your work and using unity conversion ratios, calculate the work done b
    14·2 answers
  • Finally you will implement the full Pegasos algorithm. You will be given the same feature matrix and labels array as you were gi
    12·1 answer
  • In a photonic material, signal transmission occurs by which of the following? a)- Electrons b)- Photons
    9·1 answer
  • Assume the triac of an AC discrete output module fails in the shorted state. How would this affect the device connected to this
    5·1 answer
  • Pointssss 100 and brainliest :)
    5·1 answer
  • For an AC machine, what percentage of power is at the negative terminal?
    14·1 answer
  • When was solar power envold ​
    8·2 answers
  • A tiger cub has a pattern of stripes on it for that is similar to that of his parents where are the instructions stored that pro
    8·1 answer
  • The team needs to choose a primary view for the part drawing. Three team members make suggestions:
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!