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
Vlad1618 [11]
3 years ago
7

How would I get this python code to run correctly? it's not working.​

Engineering
1 answer:
Elanso [62]3 years ago
6 0

Answer:

See Explanation

Explanation:

This question requires more information because you didn't state what the program is expected to do.

Reading through the program, I can assume that you want to first print all movie titles then prompt the user for a number and then print the move title in that location.

So, the correction is as follows:

Rewrite the first line of the program i.e. movie_titles = ["The grinch......."]

for each_movie_titles in movie_titles:

   print(each_movie_titles)

   

usernum = int(input("Number between 0 and 9 [inclusive]: "))

if usernum<10 and usernum>=0:

   print(movie_titles[usernum])

Line by line explanation

This iterates through the movie_titles list

for each_movie_titles in movie_titles:

This prints each movie title

   print(each_movie_titles)

This prompts the user for a number between 0 and 9    

usernum = int(input("Number between 0 and 9 [inclusive]: "))

This checks for valid range

if usernum<10 and usernum>=0:

If number is valid, this prints the movie title in that location

   print(movie_titles[usernum])

You might be interested in
Explain by Research how a basic generator works ? using diagram<br>​
natulia [17]
Correcto no se muy bien de que se trata el tema porque está en inglés.
Sorry
8 0
3 years ago
Sketch the asymptotes of the Bode plot magnitude and phase for the open-loop transfer ()=100(S+1)/((S+10)(S+100)) Use MATLAB to
Salsk061 [2.6K]

The asymptotes of the open loop transfer are:

  • Horizontal: y = 0
  • Vertical: x = -10 and x = -100

<h3>How to plot the asymptotes?</h3>

The open loop transfer function is given as:

f(s) = 100(s + 1)/((s + 10)(s + 100))

Set the numerator of the function to 0.

So, we have:

f(s) = 0/((s + 10)(s + 100))

Evaluate

f(s) = 0

This means that, the vertical asymptote is y = 0

Set the denominator of the function to 0.

(s + 10)(s + 100)  0

Split

s + 10 = 0 and s + 100 = 0

Solve for s

s = -10 and s = -100

This means that, the horizontal asymptotes are s = -10 and s = -100

See attachment for the graph of the asymptotes

Read more about asymptotes at:

brainly.com/question/4084552

#SPJ1

6 0
2 years ago
The rate of flow through an ideal clarifier is 8000m3 /d, the detention time is 1h and the depth is 3m. If a full-length movable
Fittoniya [83]

Answer:

a) 35%

b) yes it can be improved by moving the tray near the top

   Tray should be located ( 1 to 2 meters below surface )

   max removal efficiency ≈ 70%

c) The maximum removal will drop as the particle settling velocity = 0.5 m/h

Explanation:

Given data:

flow rate = 8000 m^3/d

Detention time = 1h

depth = 3m

Full length movable horizontal tray :  1m below surface

<u>a) Determine percent removal of particles having a settling velocity of 1m/h</u>

velocity of critical sized particle to be removed = Depth / Detention time

= 3 / 1 = 3m/h

The percent removal of particles having a settling velocity of 1m/h ≈ 35%

<u>b) Determine if  the removal efficiency of the clarifier can be improved by moving the tray, the location of the tray  and the maximum removal efficiency</u>

The tray should be located near the top of the tray ( i.e. 1 to 2 meters below surface ) because here the removal efficiency above the tray will be 100% but since the tank is quite small hence the

Total Maximum removal efficiency

=  percent removal_{above} + percent removal_{below}

= ( d_{a},v_{p} ) . \frac{d_{a} }{depth}  + ( d_{a},v_{p} ) . \frac{depth - d_{a} }{depth}  = 100

hence max removal efficiency ≈ 70%

<u>c) what is the effect of moving the tray would be if the particle settling velocity were equal to 0.5m/h?</u>

The maximum removal will drop as the particle settling velocity = 0.5 m/h

7 0
3 years ago
2. What is the charge, expressed in micro coulombs on two equally and similarly charges spheres placed in air with their centres
9966 [12]

Answer:

q = 0.1086 micro Coulombs

Explanation:

By Coulombs law, we have;

F =k \times  \dfrac{ q_1 \times q_2}{r^2}

Where;

F = The electric force = 120 mgm

q₁ and q₂ = Charge

r = The separating distance = 30 cm = 0.3 m

k = 8.9876×10⁹ kg·m³/(s²·C²)

Where, q₁ and q₂, we have;

F =k \times  \dfrac{ q^2}{r^2}

Whereby the force is the force of 120 milligram mass, we have;

0.00012 × 9.81 = 000011772 N

q = \sqrt{ \dfrac{ F\times r^2}{k}}

Substituting the values, we have;

q = \sqrt{ \dfrac{ 000011772 \times (0.3)^2}{8.9876 \times 10^9}} = 1.086 \times 10 ^{-7} \ Coulombs

q = 0.1086 micro Coulombs.

5 0
3 years ago
Write down the tracking error such that the adaptive cruise control objective is satisfied.
bija089 [108]

Answer:
The most common reason a cruise control stops working is due to a blown fuse or a defective brake pedal switch. It can also be caused by issues with the throttle control system or the ABS. In older cruise control systems it can be caused by a broken vacuum line.

5 0
2 years ago
Other questions:
  • An industrial system is rated at 600 v the system includes a partially exposed terminal block thats mounted on a bulkhead a new
    5·1 answer
  • A quantity of water within a piston-cylinder assembly executes a Carnot power cycle. During isothermal expansion, the water is h
    10·1 answer
  • A wastewater treatment plant has two primary clarifiers, each 20m in diameter with a 2-m side-water depth. the effluent weirs ar
    8·1 answer
  • Which one of the following women won the American Mathematical Society Scatter Prize, a Clay Mathematics Institute Fellowship, a
    8·1 answer
  • The I26 profile beam is supported and loaded as in the figure. It is required to calculate the vertical movement of the free end
    11·1 answer
  • What is the primary reason that heating, ventilating, and air conditioning (HVAC) is critical to a data center
    8·1 answer
  • What is the common applications for gypsum in construction
    5·1 answer
  • Which type of work is a textile engineer most likely to do?
    8·1 answer
  • Phosphorus and nitrogen are included in which category of water pollutants?
    12·1 answer
  • Your teacher gives you extra h.w on the weekends if the class average on the exam is under 75%.this is an example of
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!