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
Bas_tet [7]
3 years ago
5

Write multiple if statements

Engineering
1 answer:
Tatiana [17]3 years ago
3 0

Code:

#include <iostream>

using namespace std;

int main()

{

  int Car_Year;

  cout<<"Please Enter the Car Model."<<endl;

  cin>>Car_Year;    

 if (Car_Year<1967)

 {

cout<<"Few safety features."<<endl;

 }

else if (Car_Year>1971 && Car_Year<=1991)

{

cout<<"Probably has head rests."<<endl;

}

else if (Car_Year>1991 && Car_Year<=2000)

{

cout<<"Probably has antilock brakes."<<endl;

}

else if (Car_Year>2000)

{

cout<<"Probably has airbags."<<endl;

  }

else

{

cout<<"Invalid Selection."<<endl;

}

  return 0;

}

Output:

Please Enter the Car Model.

1975

Probably has head rests.

Please Enter the Car Model.

1999

Probably has antilock brakes.

Please Enter the Car Model.

2005

Probably has airbags.

Please Enter the Car Model.

1955

Few safety features.

Explanation:

We were required to implement multiple If else conditions to assign car model year with the corresponding features of the car.

The code is tested with a wide range of inputs and it returned the same results as it was asked in the question.

You might be interested in
A metal bar has a 0.6 in. x 0.6 in. cross section and a gauge length of 2 in. The bar is loaded with a tensile force of 50,000 l
Aleks [24]

Answer:

modulus =3.97X10^6 Ib/in^2, Poisson's ratio = 0.048

Explanation:

Modulus is the ratio of tensile stress to tensile strain

Poisson's ratio is the ratio of transverse contraction strain to longitudinal extension strain within the direction of the stretching force

And contraction occur from 0.6 in x 0.6 in to 0.599 in x 0.599 in while 2 in extended to 2.007, with extension of 0.007 in

5 0
3 years ago
Q1: You have to select an idea developing an application like web/mobile or industrial, it should be based on innovative idea, n
elena55 [62]

Answer:

Creating an app is both an expression of our self and a reflection of what we see is missing in the world. We find ourselves digging deep into who we are, what we would enjoy working on, and what needs still need to be fulfilled. Generating an app idea for the first time can be extremely daunting. Especially with an endless amount of possibilities such as building a church app.

The uncertainty has always spawned a certain fear inside creators. The fear of creating something no one will enjoy. Spending hundreds of dollars and hours building something which might not bring back any real tangible results. The fear of losing our investment to a poor concept is daunting but not random. But simple app ideas are actually pretty easy to come by.

Great app idea generation is not a gift given to a selected few, instead, it is a process by which any of us are able to carefully explore step by step methods to find our own solution to any problem. Whether you are a seasoned creator or a novice, we have provided a few recommendations to challenge and aid you as you create your next masterpiece.

if I am right then make me brainliest

6 0
3 years ago
A fatigue test was conducted in which the mean stress was 90 MPa (13050 psi), and the stress amplitude was 190 MPa (27560 psi).
Gwar [14]

Answer:

a) 280MPa

b) -100MPa

c) -0.35

d) 380 MPa

Explanation:

GIVEN DATA:

mean stress \sigma_m = 90MPa

stress amplitude \sigma_a = 190MPa

a) \sigma_m =\frac{\sigma_max+\sigma_min}{2}

    90 =\frac{\sigma_{max}+\sigma_{min}}{2} --------------1

\sigma_a =\frac{\sigma_{max}-\sigma_{min}}{2}

   190 = \frac{\sigma_{max}-\sigma_{min}}{2} -----------2

solving 1 and 2 equation we get

\sigma_{max} = 280MPa

b) \sigma_{min} = - 100MPa

c)

stress ratio=\frac{\sigma_{min}}{\sigma_{max}}

=\frac{-100}{280} = -0.35

d)magnitude of stress range

                      =(\sigma_{max} -\sigma_{min})

                       = 280 -(-100) = 380 MPa

3 0
3 years ago
Calculate the amount of current flowing through a 75-watt light bulb that is connected to a 120-volt circuit in your home.
vodomira [7]

Answer:

I = 0.625 A

Explanation:

Given that,

Power of the light bulb, P = 75 W

Voltage of the circuit, V = 120 V

We need to find the current flowing through it. We know that, Power is given by :

P=V\times I

I is the electric current

I=\dfrac{P}{V}\\\\I=\dfrac{75\ W}{120\ V}\\\\I=0.625\ A

So, the current is 0.625 A.

5 0
3 years ago
Who play 1v1 lol unblocked games 76
nikklg [1K]

Answer:

I did not what is it about?

8 0
3 years ago
Read 2 more answers
Other questions:
  • Consider two water tanks filled with water. The first tank is 8 m high and is stationary, while the second tank is 2 m high and
    12·2 answers
  • A specimen of commercially pure copper has a strength of 240 MPa. Estimate its average grain diameter using the Hall-Petch equat
    14·1 answer
  • The point in an electrical circuit that is connected to the negative side of a power supply is called what?
    8·1 answer
  • All brake lights are dimmer than normal. Technician A says that bad bulbs could be the cause. Technician B says that high resist
    6·1 answer
  • A binary liquid system exhibits LLE at 25°C. Determine from each of the following sets of miscibility data estimates for paramet
    10·1 answer
  • A pinion and gear pair is used to transmit a power of 5000 W. The teeth numbers of pinion
    8·1 answer
  • Our rule-of-thumb for presenting final results is to round to three significant digits or four if the first digit is a one. By t
    12·1 answer
  • 1. Làm thế nào để đảm bảo tính khả thi của văn bản hành chính ?
    12·1 answer
  • thanh thẳng AD có kích thước và chịu lực như hình.biết P1 = 10kn, p2=5kn,M=15kn*m,a=2m.Hãy xách định phản lực liên kết tại A,b
    14·1 answer
  • Rivet gauge, or transverse pitch is the distance between the Group of answer choices heads of rivets in the same row. centers of
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!