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
When the outside temperature is 5.2 ⁰C, a steel beam of cross-sectional area 52 cm2 is installed in a building with the ends of
il63 [147K]

Multiply the coefficient by the change in temperature:

1.1*10^-5 x (37-5.2) = 0.0003498

Multiply Young's modulus by the area by the above answer:

2*10^11 x 52 * 0.0003498 x (1/100)^2 = 3.63792 x 10^5 N

6 0
3 years ago
Nec ________ covers selection of time-delay fuses for motor- overload protection.
Murljashka [212]

Nec Article 430 covers selection of time-delay fuses for motor- overload protection.

<h3>What article in the NEC covers motor overloads?</h3>

Article 430 that is found in  National Electrical Code (NEC) is known to be state as “Motors, Motor Circuits and Controllers.” .

Note that the article tells that it covers areas such as motors, motor branch-circuit as well as feeder conductors, motor branch-circuit and others.

Therefore, Nec Article 430 covers selection of time-delay fuses for motor- overload protection.

Learn more about motor- overload from

brainly.com/question/20738481

#SPJ1

6 0
1 year ago
Calculate the load, PP, that would cause AA to be displaced 0.01 inches to the right. The wires ABAB and ACAC are A36 steel and
Nataly [62]

Answer:

P = 4.745 kips

Explanation:

Given

ΔL = 0.01 in

E = 29000 KSI

D = 1/2 in  

LAB = LAC = L = 12 in

We get the area as follows

A = π*D²/4 = π*(1/2 in)²/4 = (π/16) in²

Then we use the formula

ΔL = P*L/(A*E)

For AB:

ΔL(AB) = PAB*L/(A*E) = PAB*12 in/((π/16) in²*29*10⁶ PSI)

⇒  ΔL(AB) = (2.107*10⁻⁶ in/lbf)*PAB

For AC:

ΔL(AC) = PAC*L/(A*E) = PAC*12 in/((π/16) in²*29*10⁶ PSI)

⇒  ΔL(AC) = (2.107*10⁻⁶ in/lbf)*PAC

Now, we use the condition

ΔL = ΔL(AB)ₓ + ΔL(AC)ₓ = ΔL(AB)*Cos 30° + ΔL(AC)*Cos 30° = 0.01 in

⇒  ΔL = (2.107*10⁻⁶ in/lbf)*PAB*Cos 30°+(2.107*10⁻⁶ in/lbf)*PAC*Cos 30°= 0.01 in

Knowing that   PAB*Cos 30°+PAC*Cos 30° = P

we have

(2.107*10⁻⁶ in/lbf)*P = 0.01 in

⇒  P = 4745.11 lb = 4.745 kips

The pic shown can help to understand the question.

5 0
4 years ago
a metal rod 24mm diameter and 2m long is subjected to an axial pull of 40 kN. If the rod is 0.5mm, then find the stress-induced
ozzi

Answer:

i dont know but i will take the points tho hahah

Explanation:

8 0
3 years ago
Explain the conductivity results observed for ionic compounds in the solid state and in aqueous solution.i.Solid ionic compounds
Svetach [21]

Answer:

Aqueous solution of ionic compounds conduct electricity while solid ionic compounds don't.

Explanation:

Ionic compound conduct electricity when liquid or in aqueous solution that is resolved in water because the ionic bonds of the compound become weak and the ions are free to move from place to place.

Ionic compounds don't conduct electricity while in solid state because the ionic bonds are to strong and ions cannot move around with lack of space for movement which makes the electric conductivity zero.

8 0
3 years ago
Other questions:
  • WANT POINTS? JUST ANSWER ME:)
    6·2 answers
  • Part of the basic procedures is the vehicle check. What does that mean?
    7·1 answer
  • Complete the following sentence. Engineers explore biology, chemistry, and physics for use in scenarios.
    8·2 answers
  • (a) Design a first-order passive high-pass filter with a cutoff frequency of 1000 rad/sec.
    8·1 answer
  • What is the maximum volume flow rate, in m^3/hr, of water at 15.6°C a 10-cm diameter pipe can carry such that the flow will be l
    9·1 answer
  • What are the benefits of using a multi view sketch to communicate a design
    14·1 answer
  • A 0.91 m diameter corrugated metal pipe culvert (n = 0.024) has a length of 90 m and a slope of 0.0067. The entrance has a squar
    5·1 answer
  • सत्य से अधिक उपयोगी एवं आज्ञापालन से श्रेष्ठ क्या है ?<br>answer fast plz​
    9·1 answer
  • On a day in which the local atmospheric pressure is 99.5 kPa, answer each of the following: (a) Calculate the column height of m
    12·1 answer
  • For some alloy, the yield stress is 345-MPa (50,000-psi) and the elastic modulus (E) is 103-GPa (15x106 psi). What is the maximu
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!