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
Masja [62]
3 years ago
15

The function below takes a single string parameter: input_string. If the input contains the lowercase letter z, return the strin

g 'has the letter z'. Otherwise, return the string 'not worthwhile'.

Engineering
1 answer:
Whitepunk [10]3 years ago
4 0

Answer:

# string_contains function is defined with input_string

# as arguments

def string_contains(input_string):

   # if-statement that check if letter z is in input_string

   if 'z' in input_string:

       # it print"has the letter z" if it has z

       print("has the letter z")

   else:

       # else it print "not worthwhile"

       print("not worthwhile")

       

# string_contains function is called

string_contains("The animal is zebra")        

string_contains("learning is fun")

Explanation:

The code is written in Python and well commented.

Image of the output when the function is called is attached.

You might be interested in
while performing a running compression test how should running compression compare to static compression
algol [13]

Answer:

The idle speed of a running compression should be between 50-75 PSI and that is about half of the static compression.

Explanation:

The Running or Dynamic compression is used to determine how well the cylinder in an engine  is absorbing air, reserving it for the proper length of time, and releasing it to the exhaust. The static or cranking compression test is used to check the sealing of the cylinder. Before performing the running compression test, the static compression test is first performed to rule out other issues like bent valves.

The standard value for the static compression is given by;

Compression ratio * 14.7 = Manufacturers Specification

The running compression should always be half of the static compression.

5 0
2 years ago
g A pump is required to deliver 100 gpm at a head of 100 ft, but the pump rated capacity is 150 gpm at a head of 100 ft. If the
Thepotemich [5.8K]

Answer: valving the pump discharge to reduce the flow will only result in an increase in the water velocity according to the laws of continuity of flow.

Q = AV = constant.

The pump speed of 150 gpm is, and will remain constant. Valving simply reduces flow area A, which is balanced out by increased velocity V of water through the pipe.

This does not affect the pump speed Q (flow rate) and hence it remains the same.

8 0
3 years ago
What is the objective of phasing out an INDUCTION MOTOR before putting the machine into commission?
enyata [817]

The main objective of phasing out an INDUCTION MOTOR is to identify the ends of the stator coils.

<h3>What is an induction motor?</h3>

An induction motor is a device based on alternate electricity (AC) which is composed of three different stator coils.

An induction motor is a device also known as an asynchronous motor due to its irregular velocity.

In conclusion, the objective of phasing out an INDUCTION MOTOR is to identify the ends of the stator coils.

Learn more on induction motors here:

brainly.com/question/15721280

#SPJ1

8 0
2 years ago
A three-point bending test is performed on a glass specimen having a rectangular cross section of height d = 5.4 mm (0.21 in.) a
Fudgin [204]

Answer:

5.21e-2mm

Explanation:

Please see attachment

8 0
3 years ago
Water is being added to a storage tank at the rate of 500 gal/min. Water also flows out of the bottom through a 2.0-in-inside di
melomori [17]

Answer:

From the answer, the water level is falling (since rate of outflow is more than that of inflow), and the rate at which the water level in the storage tank is falling is

(dh/dt) = - 0.000753

Units of m/s

Explanation:

Let the volume of the system at any time be V.

V = Ah

where A = Cross sectional Area of the storage tank, h = height of water level in the tank

Let the rate of flow of water into the tank be Fᵢ.

Take note that Fᵢ is given in the question as 500 gal/min = 0.0315 m³/s

Let the rate of flow of water out of the storage tank be simply F.

F is given in the form of (cross sectional area of outflow × velocity)

Cross sectional Area of outflow = πr²

r = 2 inches/2 = 1 inch = 0.0254 m

Cross sectional Area of outflow = πr² = π(0.0254)² = 0.00203 m²

velocity of outflow = 60 ft/s = 18.288 m/s

Rate of flow of water from the storage tank = 0.0203 × 18.288 = 0.0371 m³/s

We take an overall volumetric balance for the system

The rate of change of the system's volume = (Rate of flow of water into the storage tank) - (Rate of flow of water out of the storage tank)

(dV/dt) = Fᵢ - F

V = Ah (since A is constant)

dV/dt = (d/dt) (Ah) = A (dh/dt)

dV/dt = A (dh/dt) = Fᵢ - F

Divide through by A

dh/dt = (Fᵢ - F)/A

Fi = 0.0315 m³/s

F = 0.0371 m³/s

A = Cross sectional Area of the storage tank = πD²/4

D = 10 ft = 3.048 m

A = π(3.048)²/4 = 7.30 m²

(dh/dt) = (0.0315 - 0.0370)/7.3 = - 0.000753

(dh/dt) = - 0.000753

4 0
2 years ago
Other questions:
  • Air enters the compressor of an ideal cold air-standard Brayton cycle at 100 kPa, 300 K, with a mass flow rate of 6 kg/s. The co
    11·1 answer
  • I dont undertand this coding problem (Java):
    8·1 answer
  • PLZ HURRY IM ON A TIMER
    6·1 answer
  • What is the composition, in atom percent, of an alloy that contains 44.5 lbmof Ag, 83.7 lbmof Au, and 5.3 lbmof Cu? What is the
    9·1 answer
  • Is it more difficult to pump oil from a well on dry land or a well under water?Why?
    11·1 answer
  • A gas contained within a piston-cylinder undergoes the follow change in states: Process 1: Constant volume from p1 = 1 bar V1 =
    9·1 answer
  • The decay of a radioactive isotope can be theoretically modeled with the following equation, where C0 is the initial amount of t
    6·1 answer
  • As a top-level executive at your own company, you are worried that your employees may steal confidential data too easily by down
    12·1 answer
  • 6
    5·1 answer
  • The velocity components expressed in m/s<br>​
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!