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
A triangular plate with a base 5 ft and altitude 3 ft is submerged vertically in water. If the base is in the surface of water,
Scorpion4ik [409]

Answer:

Hydrostatic force = 41168 N

Explanation:

Complete question

A triangular plate with a base 5 ft and altitude 3 ft is submerged vertically in water  so that the top is 4 ft below the surface. If the base is in the surface of water, find the force against onr side of the plate. Express the hydrostatic force against one side of the plate as an integral and evaluate it. (Recall that the weight density of water is 62.5 lb/ft3.)

Let "x" be the side length submerged in water.

Then

w(x)/base = (4+3-x)/altitude

w(x)/5 = (4+3-x)/3

w(x) = 5* (7-x)/3

Hydrostatic force = 62.5 integration of  x * 4 * (10-x)/3 with limits from 4 to 7

HF = integration of 40x - 4x^2/3

HF = 20x^2 - 4x^3/9 with limit 4 to 7

HF = (20*7^2 - 4*7^(3/9))- (20*4^2 - 4*4^(3/9))

HF = 658.69 N *62.5 = 41168 N

4 0
3 years ago
When plotting a single AC cycle beginning at zero degrees and moving forward in time the cycles negative peak occurs at
Lana71 [14]

Answer:A 270 degrees

Explanation:

4 0
3 years ago
A lake has a carrying capacity of 10,000 fish. At the current level of fishing, 2,000 fish per year are taken with the catch uni
arlik [135]

Answer:

The population size would be p' = 5000

The yield would be    MaxYield = 2082 \ fishes \ per \ year

Explanation:

So in this problem we are going to be examining the application of a  population dynamics a fishing pond and stock fishing and objective would be to obtain the maximum sustainable yield and and the population of the fish at the obtained maximum sustainable yield,  so basically we would be applying an engineering solution to fishing

 

    So the current  yield which is mathematically represented as

                               \frac{dN}{dt} =   \frac{2000}{1 \ year }

 Where dN is the change in the number of fish

            and dt is the change in time

So in order to obtain the solution we need to obtain the  rate of growth

    For this we would be making use of the growth rate equation which is

                                      r = \frac{[\frac{dN}{dt}] }{N[1-\frac{N}{K} ]}

  Where N is the population of the fish which is given as 4,000 fishes

          and  K is the carrying capacity which is given as 10,000 fishes

             r is the growth rate

        Substituting these values into the equation

                              r = \frac{[\frac{2000}{year}] }{4000[1-\frac{4000}{10,000} ]}  =0.833

The maximum sustainable yield would be dependent on the growth rate an the carrying capacity and this mathematically represented as

                      Max Yield  = \frac{rK}{4} = \frac{(10,000)(0.833)}{4} = 2082 \ fishes \ per \ year

So since the maximum sustainable yield is 2082 then the the population need to be higher than 4,000 so in order to ensure a that this maximum yield the population size denoted by p' would be

                          p' = \frac{K}{2}  = \frac{10,000}{2}  = 5000\ fishes          

7 0
3 years ago
Read 2 more answers
For surface-mounted and pendant-hung luminaires, support rods should be placed so that they extend about ____
7nadin3 [17]

Answer:

One

For surface-mounted and pendant-hung luminaires, support rods should be placed so that they extend about _one___

<h3>what is supported mounted?</h3>
  • A structure that holds up or serves as a foundation for something else. Support is a synonym for mounting.

To learn more about it, refer

to brainly.com/question/25689052

#SPJ4

4 0
2 years ago
Dampers dampers springs are used inside some valve spring to
harkovskaia [24]
The correct answer is A. Retain. Valve Stem seals
3 0
3 years ago
Other questions:
  • Convection is a function of temperature to the fourth power. a)-True b)-False
    9·1 answer
  • 1) Pareto charts are used to: A) identify inspection points in a process. B) outline production schedules. C) organize errors, p
    6·1 answer
  • A hypothetical metal alloy has a grain diameter of 2.4 × 10−2 mm. After a heat treatment at 575°C for 500 min, the grain diamete
    12·1 answer
  • 500 flights land each day at San Jose’s airport. Assume that each flight has a 5% chance of being late, independently of whether
    5·1 answer
  • Explain the prosses of welding
    12·2 answers
  • A design that either partially or wholly integrates the bodywork
    6·1 answer
  • Explain your own understanding about the relevant connections between the four subsystems of Earth through the use of a creative
    9·1 answer
  • The product of two factors is 4,500. If one of the factors is 90, which is the other factor?
    15·1 answer
  • A motor car shaft consists of a steel tube 30 mm internal diameter and 4 mm thick. The engine develops 10 kW at 2000 r.p.m. Find
    11·1 answer
  • There are signs of oil spray on the compressor clutch hub and nearby underhood areas. Technician A says that a faulty compressor
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!