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
Nikolay [14]
3 years ago
6

Write multiple if statements: If carYear is before 1967, print "Probably has few safety features." (without quotes). If after 19

70, print "Probably has head rests.". If after 1991, print "Probably has electronic stability control.". If after 2002, print "Probably has airbags.". End each phrase with period and newline. Ex: carYear = 1995 prints:
Engineering
1 answer:
Free_Kalibri [48]3 years ago
5 0

Answer:

The solution code is written in Python 3.

  1. carYear = 1995
  2. if(carYear < 1967):
  3.    print("Probably has few safety features.\n")
  4. if(carYear > 1970):
  5.    print("Probably has head rests. \n")
  6. if(carYear > 1991):
  7.    print("Probably has electronic stability control.\n")
  8. if(carYear > 2002):
  9.    print("Probably has airbags. \n")

Explanation:

Firstly, create a variable, <em>carYear</em> to hold the value of year of the car make. (Line 1)

Next, create multiple if statements as required by the question (Line 3-13). The operator "<" denotes "smaller" and therefore <em>carYear < 1967</em> means any year before 1967. On another hand, the operator ">" denotes "bigger" and therefore <em>carYear > 1970 </em>means any year after 1970.

The print statement in each of the if statements is done using the Python built-in function <em>print()</em>. The "\n" is an escape sequence that create a new line at the end of each printed phrase.

You might be interested in
7.35 and 7.36 For the beam and loading shown, (a) draw the shear and bending-moment diagrams, (b) determine the maximum absolute
Crank

Maximum absolute values of the shear = 28 KN

Maximum absolute values of bending moment = 5.7 KN.m

<h3>How to draw Shear Force and Bending Moment Diagram?</h3>

A) We can see the beam loaded in the first image attached.

For the shear diagram, let us calculate the shear from point load to point load.

From A to C, summing vertical to zero gives; ∑fy = 0: -20 - V = 0

V = -20 KN

From C to D, summing vertical to zero gives; ∑fy = 0: -20 + 48 - V = 0

V = 28 KN

From D to E, summing vertical to zero gives; ∑fy = 0: -20 + 48 - 20 - V = 0

V = 8 KN

From E to B, summing vertical to zero gives; ∑fy = 0: -20 + 48 - 20 - 20 - V = 0

V = -12 KN

For the bending moment diagram, let us calculate the bending moment from point load to point load.

At point A, the bending moment would be zero. Thus, M_A = 0 KN.m

At point C, taking moment about point C and equating to zero gives;

M_C = 0. Thus; 20(0.225) + M = 0

M = -4.5 KN.m

At point D, taking moment about point D and equating to zero gives;

M_D = 0. Thus; 20(0.525) - 48(0.3) + M = 0

M = 3.9 KN.m

At point E, taking moment about point E and equating to zero gives;

M_D = 0. Thus; 20(0.75) - 48(0.525) + 20(0.225) + M = 0

M = 5.7 KN.m

At point B, taking moment about point E and equating to zero gives;

M_E = 0. Thus; 20(1.05) - 48(0.825) + 20(0.525) + (20 * 0.3) + M = 0

M = 2.1 KN.m

2) From the attached diagrams, we can deduce that;

Maximum absolute values of the shear = 28 KN

Maximum absolute values of bending moment = 5.7 KN.m

Read more about shear force & bending moment diagram at; brainly.com/question/14834487

#SPJ1

4 0
2 years ago
Determine (with justification) whether the following systems are (i) memoryless, (ii) causal, (iii) invertible, (iv) stable, and
lina2011 [118]

Answer:

a.

y[n] = x[n] x[n-1]  x[n+1]

(i) Memory-less - It is not memory-less because the given system is depend on past or future values.

(ii) Causal - It is non-casual because the present value of output depend on the future value of input.

(iii) Invertible - It is invertible and the inverse of the given system is \frac{1}{x[n] . x[n-1] x[n+1]}

(iv) Stable - It is stable because for all the bounded input, output is bounded.

(v) Time invariant - It is not time invariant because the system is multiplying with a time varying function.

b.

y[n] = cos(x[n])

(i) Memory-less - It is memory-less because the given system is not depend on past or future values.

(ii) Causal - It is casual because the present value of output does not depend on the future value of input.

(iii) Invertible - It is not invertible because two or more than two input values can generate same output values .

For example - for x[n] = 0 , y[n] = cos(0) = 1

                       for x[n] = 2\pi , y[n] = cos(2\pi) = 1

(iv) Stable - It is stable because for all the bounded input, output is bounded.

(v) Time invariant - It is time invariant because the system is not multiplying with a time varying function.

3 0
3 years ago
When converting liquid level units to sensor output signal units, you should first convert the liquid level units to _____ units
dangina [55]
The answer is 2 because I just took the test!
7 0
2 years ago
The biggest advantage of sketches is that
steposvetlana [31]

Answer:

They communicate ideas very quickly.

Explanation:

8 0
3 years ago
Why would the shear stress be considered as the momentum flux.
oksano4ka [1.4K]

Answer:

A fluid flowing along a flat plate will stick to it at the point of contact

Explanation:

and this is known as the no-slip condition. ... This is the precise reason why shear stress in a fluid can also be interpreted as the flux of momentum.

3 0
2 years ago
Other questions:
  • given the classes above, what output is produced by the following code? meg[] elements ={new Lois(), new Stewie(), new Meg(), ne
    15·1 answer
  • שאלה 2 - כתיבת קוד (35 נק')
    12·1 answer
  • 3. When performing overhead work on scaffolding, what protective measures must be taken to prevent objects
    9·1 answer
  • The air velocity in the duct of a heating system is to be measured by a Pitot-static probe inserted into the duct parallel to th
    13·1 answer
  • Turbine blades mounted to a rotating disc in a gas turbine engine are exposed to a gas stream that is at [infinity] = 1100°C and
    6·1 answer
  • Name the four ways in which heat is transferred from a diesel engine
    7·1 answer
  • list out main types of material used in design and Manufacture of product give one example for each in engineering application ?
    10·1 answer
  • Of the core elements of successful safety and health programs, Management Leadership, Worker Participation, and what else relate
    10·2 answers
  • Which cod is the best whoever has the best awnser gets brainliest​
    12·1 answer
  • Which type of line is represented by thin, short dashes?
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!