answer.
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
kykrilka
2 months 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:
alex41 [359]2 months ago
5 0

Answer:

The following includes the explanation, code, and resulting outputs.

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 challenge involved displaying feature messages for a car based on its model year.

Logical conditions were integrated into the coding. The implementation has been verified with multiple inputs producing the expected 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
In an air standard diesel cycle compression starts at 100kpa and 300k. the compression ratio is 16 to 1. The maximum cycle tempe
Daniel [329]
The value obtained is 0.60. From the given conditions, we take k = 1.4 for air and r = 16. We know that for calculations involving diesel engine efficiency, we arrive at 0.60.
7 0
1 month ago
Describe the grain structure of a metal ingot that was produced by slow-cooling the metal in a stationary open mold.
pantera1 [306]
In the scenario of a metal ingot cooling slowly, the microstructure tends to be coarse. The surface, exposed to higher temperatures for extended periods during cooling, features smaller grain sizes as they have less time to form. However, as we delve deeper into the ingot, the grains gradually extend, leading to equiaxed grain formation at the center.
6 0
2 months ago
A 227 pound compressor is supported by four legs that contact the floor of a machine shop. At the bottom of each leg there is a
choli [298]

Answer:

1.312 in

Explanation:

The details provided in the question are:

The weight of the compressor, W is 227 pounds.

It has 4 legs.

The maximum permissible pressure is 42 psi.

Let F represent the force exerted by each leg.

Thus,

W = 4F,

or

227 pounds = 4F,

implying that:

F = 56.75 pounds.

Furthermore,

Force = Pressure × Area,

therefore:

56.75 pounds = 42 psi × πr²  [ r signifies the radius of one leg]

Consequently, we find:

r² = 0.4301,

and thus:

r = 0.656;

resulting in a diameter equal to 2r = 2 × 0.656,

which equals 1.312 in.

6 0
2 months ago
6.15. In an attempt to conserve water and to be awarded LEED (Leadership in Energy and Environmental Design) certification, a 20
Viktor [391]

Explanation:

At a temperature of 33^{\circ} C and relative humidity of 86%, the humidity ratio stands at 0.0223 with a specific volume of 14.289.

At a temperature of 33^{\circ} C and relative humidity of 40%, the humidity ratio is 0.0066 while the specific volume is 13.535.

To determine the mass of air, the following formula can be used:

\begin{aligned}m _{1} &=\frac{ v }{ v }(1- w ) \\&=\frac{1 \times 10^{5}}{13.535}(1-0.0066) \\&=7339.49 lb / min \\v _{ a } &=\frac{ m _{1} v }{(1- w )} \\v _{ a } &=\frac{7339.49 \times 14.289}{(1-0.0223)} \\v _{ a } &=107266.0 ft ^{3} / min\end{aligned}

Now, we will calculate the volume

\begin{aligned}m _{ w } &=\frac{ v _{ a }}{ v _{ a }} w _{ a }-\frac{ v _{ i }}{ v _{ i }} w _{ i } \\&=\frac{107266.0}{14.289} \times 0.0223-\frac{100000}{13.535} \times 0.0066 \\&=118.64 lb / min\end{aligned}

The duration required to fill the cistern can be determined with the equation:

Time \(=\frac{\text { cistern volume }}{\text { removal water perminute volume }}\)

By substituting the values into the preceding formula, we find:

\(\frac{\left(15 \times 10^{3} L\right) \times\left(0.0353147 ft ^{3} / L \right)}{(118.641 b / min ) \times\left(\frac{1}{62.41 lb / ft ^{3}}\right)}\)\\\(=279.09\) minutes\\\(=4.65\) hours.

Thus, the hours necessary to fill the cistern amount to 4.65 hours.

3 0
2 months ago
An art collector is bidding on a statue that would complete a collection he is trying to assemble. The statue is being sold in a
Kisachek [356]

Answer: Equal to the collector’s maximum willingness to pay for the statue.

Explanation:

The Vickrey auction, often referred to as a sealed second-price auction, is a bidding format named after the Canadian economist Vickrey. In this auction style, participants submit bids in a concealed manner, preventing others from viewing the amounts being offered.

The collector should bid an amount he or she is comfortable paying for the statue, to ensure they do not feel disadvantaged by the bidding process. In this auction system, the final price paid corresponds to the second-highest bid rather than the highest bid submitted.

8 0
2 months ago
Other questions:
  • Consider 1.0 kg of austenite containing 1.15 wt% C, cooled to below 727C (1341F). (a) What is the proeutectoid phase? (b) How
    5·1 answer
  • Two streams flow into a 500.0-gallon tank. The first stream is 10.0 wt % ethanol and 90.0 wt% hexane (mixture density is rho1 0.
    15·1 answer
  • . Were you able to observe ???? = 0 in the circuit you constructed during lab? Why or why not? Hint: What value of resistance wo
    6·1 answer
  • A long, circular aluminum rod is attached at one end to a heated wall and transfers heat by convection to a cold fluid.
    12·1 answer
  • 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
  • 1. Consider a city of 10 square kilometers. A macro cellular system design divides the city up into square cells of 1 square kil
    10·1 answer
  • Suppose we include the lead resistance in the calculation of temperature for a class A RTD. If R3 = 1000 ohms, Ra = 18 ohms, V0
    12·1 answer
  • A solid steel shaft has to transmit 100 kW at 160 RPM. Taking allowable shear stress at 70 Mpa, find the suitable diameter of th
    15·1 answer
  • Consider a convergent-divergent duct with exit and throat areas of 0.5 m2 and 0.25 m2, respectively. The inlet reservoir pressur
    6·1 answer
  • Fill in the Blank: The _____ has a very sturdy handle with good leverage for tightening nuts and bolts. It can be used to apply
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!