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
In the fully developed region of flow in a circular pipe, does the velocity profile change in the flow direction?
taurus [48]

Answer:

<em>No, the velocity profile does not change in the flow direction.</em>

Explanation:

In a fluid flow in a circular pipe, the boundary layer thickness increases in the direction of flow, until it reaches the center of the pipe, and fill the whole pipe. If the density, and other properties of the fluid does not change either by heating or cooling of the pipe, <em>then the velocity profile downstream becomes fully developed, and constant, and does not change in the direction of flow.</em>

3 0
3 years ago
Seawater containing 3.50 wt% salt passes through a series of 11 evaporators. Roughly equal quantities of water are vaporized in
statuscvo [17]

Answer: the mass flow rate of concentrated brine out of the process is 46,666.669 kg/hr

Explanation:

F, W and B are the fresh feed, brine and total water obtained

w = 2 x 10^4 L/h

we know that

F = W + B

we substitute

F = 2 x 10^4 + B

F = 20000 + B .................EQUA 1

solute

0.035F = 0.05B

B = 0.035F/0.05

B = 0.7F

now we substitute value of B in equation 1

F = 20000 + 0.7F

0.3F = 20000

F = 20000/0.3

F = 66666.67 kg/hr

B = 0.7F

B = 0.7 * F

B = 0.7 * 66666.67

B = 46,666.669 kg/hr

the mass flow rate of concentrated brine out of the process is 46,666.669 kg/hr

8 0
4 years ago
Integer to Float Conversion All labs must be done during lab time. Each labs worth 10 points The lab can be hand in next day wit
andrew-mc [135]

Answer:

Code explained below

Explanation:

.data

msg1: .asciiz "Please input a temperature in celsius: "

msg2: .asciiz "The temperature in Fahrenheit is: => "

num: .float 0.0

.text

main:

#print the msg1

li $v0, 4

la $a0, msg1

syscall

#read the float value from user

li $v0,6 #read float syscall value is $v0

syscall #read value stored in $f0

#formula for celsius to fahrenheit is

#(temperature(C)* 9/5)+32

#li.s means load immediate float

#copy value 9.0 to $f2

li.s $f2,9.0  

#copy value 5.0 to $f3

li.s $f3,5.0

# following instructions performs: 9/5

#div.s - division of two float numbers

#divide $f2 and f3.Result will stores in $f1

div.s $f1,$f2,$f3

#following instruction performs: temperature(C) * (9/5)

#multiple $f1 and $f0.Result stored in $f1

mul.s $f1,$f1,$f0

#copy value 32 to $f4

li.s $f4,32.0

#following instruction performs: (temperature(C) * (9/5))+32

#add $f1 and $f4.Result stores in $f1

add.s $f1,$f1,$f4

#store float from $f1 to num

s.s $f1,num

#print the msg2

li $v0, 4 #print string syscall value is 4

la $a0, msg2 #copy address of msg2 to $a0

#print the float

syscall

li $v0,2 #print float syscall value is 2

l.s $f12,num #load value in num to $f12

syscall

#terminate the program

li $v0, 10 #terminate the program syscall value is 10

syscall

4 0
3 years ago
A 4.4 HP electric motor spins a shaft at 2329 rpm. Find: The torque load carried by the shaft is closest to: Select one: a)-27.0
harina [27]

Answer:

Load carried by shaft=9.92 ft-lb

Explanation:

Given:    Power P=4.4  HP

                    P=3281.08 W

<u><em>Power:  </em></u>Rate of change of work with respect to time is called power.

We know that P=Torque\times speed

     \omega=\frac{2\pi N}{60} rad/sec

So that P=\dfrac{2\pi NT}{60}

So   3281.08=\dfrac{2\pi \times 2329\times T}{60}

      T=13.45 N-m         (1 N-m=0.737 ft-lb)

 So T=9.92 ft-lb.

Load carried by shaft=9.92 ft-lb

3 0
3 years ago
A long, circular aluminum rod is attached at one end to a heated wall and transfers heat by convection to a cold fluid.
Trava [24]

Answer:

a. Heat removal rate will increase

b. Heat removal rate will decrease

Explanation:

Given that

One end of rod is connected to the furnace and rod is long.So this rod can be treated as infinite long fin.

We know that heat transfer in fin given as follows

Q_{fin}=\sqrt{hPKA}\ \Delta T

We know that area

A=\dfrac{\pi}{4}d^2

Now when diameter will triples then :

A_f=\dfrac{\pi}{4}{\left (3d \right )}^2

A_f=9A

Q'_{fin}=\sqrt{9hPKA}\ \Delta T

Q'_{fin}=3\sqrt{hPKA}\ \Delta T

Q'_{fin}=3Q

So the new heat transfer will increase by 3 times.

Now when copper rod will replace by aluminium rod :

As we know that thermal conductivity(K) of Aluminium is low as compare to Copper .It means that heat transfer will decreases.

3 0
3 years ago
Other questions:
  • Is the ASUS ROG Strix B450-F Gaming amd ryzen 5 3600 ready?
    7·2 answers
  • Open the"stateData3.c" program and try to understand how the tokenization works. If you open the input file "stateData.txt", you
    15·1 answer
  • A thermoelectric refrigerator is powered by a 16-V power supply that draws 2.9 A of current. If the refrigerator cools down 3.1
    11·1 answer
  • A town is designing a rectangular, 4m deep settling tank for treating surface water intake. The tank will have a flow velocity o
    14·1 answer
  • A cylinder with a piston restrained by a linear spring contains 2 kg of carbon dioxide at 500 kPa and 400°C. It is cooled to 40°
    7·1 answer
  • Ring rolling is a deformation process in which a thick-walled ring of smaller diameter is rolled into a thin-walled ring of larg
    11·1 answer
  • If you have a hole diameter of 0.250 with a tolerance of ±0.005, what are the limits of the hole size?
    13·1 answer
  • The MOST common injury causing absence from work is
    7·2 answers
  • Please help me with this question
    9·1 answer
  • Hole filling fasteners (for example, MS20470 rivets) should not be used in composite structures primarily because of the
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!