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
Calculate the scale and speed of the pattern in order to gain useful results for a turbine operate at 150 rev/min at height diff
Rzqust [24]

Answer:

first mark me as a brainleast

6 0
3 years ago
A square plate of titanium is 12cm along the top, 12cm on the right side, and 5mm thick. A normal tensile force of 15kN is appli
lukranit [14]

Answer:

For the Top Side

- Strain ε  = 0.00021739

- Elongation is 0.00260868 cm

For The Right side

- Strain ε  = 0.00021739

-Elongation is 0.00347826 cm

Explanation:

Given the data in the question;

Length of the squared titanium plate = 12 cm by 12 cm = 0.12 m by 0.12 m

Thickness = 5 mm = 0.005 m

Force to the Top F_t = 15 kN = 15000 Newton

Force to the right F_r = 20 kN = 20000 Newton

elastic modulus, E = 115 GPa = 115 × 10⁹ pascal

Now, For the Top Side;

- Strain = σ/E = F_t  / AE

we substitute

= 15000 / ( 0.12 × 0.005 × (115 × 10⁹) )

= 15000 / 69000000

Strain ε  = 0.00021739

- Elongation

Δl = ε × l

we substitute

Δl = 0.00021739 ×  12 cm

Δl = 0.00260868 cm

Hence, Elongation is 0.00260868 cm

For The Right side

- Strain = σ/E = F_r  / AE

we substitute

Strain = 20000 / ( 0.12 × 0.005 × (115 × 10⁹) )

= 20000 / 69000000

Strain ε = 0.000289855

- Elongation

Δl = ε × l

we substitute

Δl = 0.000289855×  12 cm

Δl = 0.00347826 cm

Hence, Elongation is 0.00347826 cm

5 0
3 years ago
A teenage brain is already fully developed to enable us to manage risks effectively.
Kisachek [45]

Answer:

false

Explanation:

the brain is only really fully devolved by age 26

3 0
3 years ago
Read 2 more answers
I NEED HELP ASAP WILL AWARD BRAINLIEST
CaHeK987 [17]

Answer:

It was a power supply of a circuit that was horizontal of the ladder where they controlled the circuit.

Explanation:

6 0
3 years ago
Read 2 more answers
Here you go!!!!!!!!!!!!!!!!!1
sweet [91]

Answer:

Im confused, what does this mean

Explanation:

i mean, thx lol

3 0
3 years ago
Other questions:
  • You are designing a system for a real-time application in which specific deadlines must be met. Finishing the computation faster
    10·1 answer
  • What is the nickname for nigeria​
    12·2 answers
  • A circuit with ____ -diameter connecting wires at a _____ temperature will have the least electrical resistance.
    13·1 answer
  • Air enters a compressor operating at steady state with pressure of 90 kPa, at a temperature of 350 K, and a volumetric flow rate
    13·1 answer
  • A speaker's knowledge of how he or she wants to affect the audience will be helpful in choosing the right information and influe
    7·1 answer
  • For laminar flow over a flat plate, the local heat transfer coefficient hx is known to vary as x−1/2, where x is the distance fr
    12·1 answer
  • How to find the voltage(B Aab) in series parallel circuit? ​
    9·1 answer
  • A flywheel made of Grade 30 cast iron (UTS = 217 MPa, UCS = 763 MPa, E = 100 GPa, density = 7100 Kg/m, Poisson's ratio = 0.26) h
    9·1 answer
  • After adjusting your seat, your___ should be as closest possible to the back rest.
    14·1 answer
  • What does 3CuCI2 mean
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!