answer.
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]
2 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]2 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
The rigid bar CDE is attached to a pin support at E and rests on the 30 mm diameter brass cylinder BD. A 22 mm diameter steel ro
Leno4ka [110]

Answer:

stress = 38.84 MPa

Explanation:

S_{D} = \alpha _{brass} * (delta T) *(L_{BD} )\\= (18.8 * 10^(-6) )*(30)*(0.3)\\= 0.0001692 m\\\\E_{BD} = stress / strain\\stress = E_{BD} * S_{D}\\stress = (200 *10^9) * (0.0001692)\\stress = 33.84 MPa

3 0
2 years ago
Link BD consists of a single bar 36 mm wide and 18 mm thick. Knowing that each pin has a 12-mm diameter, determine the maximum v
MAXImum [283]

Answer:

hello the diagram attached to your question is missing attached below is the missing diagram

answer :

a) 48.11 MPa

b) - 55.55 MPa

Explanation:

First we consider the equilibrium moments about point A

∑ Ma = 0

( Fbd * 300cos30° ) + ( 24sin∅ * 450cos30° ) - ( 24cos∅ * 450sin30° ) = 0

therefore ;<em> Fbd = 36 ( cos ∅tan30° - sin∅ ) kN  ----- ( 1 )</em>

A ) when ∅ = 0

Fbd = 20.7846 kN

link BD will be under tension when ∅ = 0, hence we will calculate the loading area using this equation

A = ( b - d ) t

b = 12 mm

d = 36 mm

t = 18

therefore loading area ( A ) = 432 mm^2

determine the maximum value of average normal stress in link BD  using the relation below

бbd = \frac{Fbd}{A}  = 20.7846 kN / 432 mm^2  =  48.11 MPa

b) when ∅ = 90°

Fbd = -36 kN

the negativity indicate that the loading direction is in contrast to the assumed direction of loading

There is compression in link BD

next we have to calculate the loading area using this equation ;

A = b * t

b = 36mm

t = 18mm

hence loading area = 36 * 18 = 648 mm^2

determine the maximum value of average normal stress in link BD  using the relation below

бbd = \frac{Fbd}{A} = -36 kN / 648mm^2 = -55.55 MPa

4 0
1 year ago
The following passage contains a fragment. Select the correct revision. Presley took the exuberance of gospel and added the freq
Semmy [17]

Answer:

A

Explanation:

Option A was the only option that did not have a sentence fragment. All the other choices were fragments because they interrupted the flow of the sentence. A sentence fragment means that if you started reading where the period is, you would understand everything about the sentence and it would be clear. You cannot have an incomplete sentence that does not have background information. An example would be: And that is how you install it. This leaves information unanswered, such as what the subject of the sentence is, or in other words, what you were installing. Another indicator that this was a sentence fragment was that the sentence began with the word "And." Sentence fragments very commonly start with the word and, because that word shows that it is a continuation of a topic.

7 0
2 years ago
Toeboards are usually ___ inches high and used on landings and balconies.
Ksju [112]

Answer:4 inches

Explanation:

Google told me

6 0
2 years ago
Explain why failure of this garden hose occurred near its end and why the tear occurred along its length. Use numerical values t
alukav5142 [94]

Answer:

  • hoop stress
  • longitudinal stress
  • material used

all this could led to the failure of the garden hose and the tear along the length

Explanation:

For the flow of water to occur in any equipment, water has to flow from a high pressure to a low pressure. considering the pipe, water is flowing at a constant pressure of 30 psi inside the pipe which is assumed to be higher than the allowable operating pressure of the pipe. but the greatest change in pressure will occur at the end of the hose because at that point the water is trying to leave the hose into the atmosphere, therefore the great change in pressure along the length of the hose closest to the end of the hose will cause a tear there. also the other factors that might lead to the failure of the garden hose includes :

hoop stress ( which acts along the circumference of the pipe):

αh = \frac{PD}{2T}     EQUATION 1

and Longitudinal stress ( acting along the length of the pipe )

αl = \frac{PD}{4T}       EQUATION 2

where p = water pressure inside the hose

          d = diameter of hose, T = thickness of hose

we can as well attribute the failure of the hose to the material used in making the hose .

assume for a thin cylindrical pipe material used to be

\frac{D}{T} ≥  20

insert this value into equation 1

αh = \frac{20 *30}{2}  = 60/2 = 30 psi

the allowable hoop stress was developed by the material which could have also led to the failure of the garden hose

8 0
2 years ago
Other questions:
  • The pressure at any point in a static fluid depends only on the Select one a)- depth, surface pressure, and specific weight. b)-
    11·1 answer
  • A gas metal arc welder is also known as a _____ welder.
    5·1 answer
  • Water has a density of 1.94 slug/ft^3. What is the density expressed in SI units? Express the answer to three significant figure
    8·1 answer
  • Two physical properties that have a major influence on the cracking of workpieces, tools, or dies during thermal cycling are the
    13·1 answer
  • The in situ moist unit weight of a soil is 17.3 kN/m^3 and the moisture content is 16%. The specific gravity of soil solids is 2
    11·1 answer
  • The Hamming encoder/decoder in the lecture detected and corrected one error bit. By adding a thirteen bit which is the exclusive
    13·1 answer
  • Q5. A hypothetical metal alloy has a grain diameter of 2.4 x 10-2 mm. After a heat treatment at 575°C for 500 min, the grain dia
    7·1 answer
  • Define initial set and final set. Briefly discuss one method used to determine them. The following laboratory tests are performe
    12·1 answer
  • NEEDS TO BE IN PYTHON:ISBN-13 is a new standard for indentifying books. It uses 13 digits d1d2d3d4d5d6d7d8d910d11d12d13 . The la
    15·1 answer
  • Mr. Ray deposited $200,000 in the Old and Third National Bank. If the bank pays 8% interest, how much will he have in the accoun
    10·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!