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
Lunna [17]
3 years ago
10

Question Set 22.1 Using the count method, find the number of occurrences of the character 's' in the string 'mississippi'.2.2 In

the string 'mississippi', replace all occurrences of the substring 'iss' with 'ox'.2.3 Find the index of the first occurrence of 'p' in 'mississippi'.
Engineering
1 answer:
Gnom [1K]3 years ago
8 0

Answer:

# Program is written in python

# 22.1 Using the count method, find the number of occurrences of the character 's' in the string 'mississippi'.

# initializing string

Stringtocheck = "mississippi"

# using count() to get count of s

counter = Stringtocheck.count('s')

# printing result

print ("Count of s is : " + str(counter))

# 2.2 In the string 'mississippi', replace all occurrences of the substring 'iss' with 'ox

# Here, we'll make use of replace() method

# Prints the string by replacing iss by ox

print(Stringtocheck.replace("iss", "ox"))

#2.3 Find the index of the first occurrence of 'p' in 'mississippi'

# declare substring

substring = 'p'

# Find index

index = Stringtocheck.find(substring)

# Print index

print(index)

# End of program

You might be interested in
Description: An apartment building has a pumped ring main that circulates hot water at 75 C through insulated 40 mm pipe with he
Ratling [72]

Answer:

hfhhfhff

Explanation:

7 0
3 years ago
For what type of metal is high speed steel drill best suited?
Harrizon [31]
ANSWER-
I believe it would be high speed steel
8 0
3 years ago
Read 2 more answers
A solid cylinder is concentric with a straight pipe. The cylinder is 0.5 m long and has an outside diameter of 8 cm. The pipe ha
poizon [28]

Answer :  

The force needed to move the cylinder is 25.6 N

<h2>Further explanation  </h2>

Given that,  

Length of the cylinder, l = 0.5 m  

Outer diameter of the cylinder, d = 8 cm = 0.08 m  

Outer radius of the cylinder, r=0.04\ m  

Inside diameter of the pipe, d = 8.5 cm = 0.085 m  

Inside radius of the pipe, r=0.0425\ m  

Specific gravity of the oil, \rho=0.92  

Density of oil, d=\rho\times \rho_w

Kinematic viscosity of the oil, v=5.57\times 10^{-4}\ m^2/s  

Velocity of the cylinder, u = 1 m/s  

We need to find the force needed to move the cylinder. Let the force is F.  

Specific gravity is defined as the ratio of the density of the substance to the density of water.  

Kinematic viscosity is the acquired resistance of a fluid when there is no external force is acting except gravity. It is denoted by v.

Absolute viscosity is given by :

v=\dfrac{\mu}{d}

Where, d = density of oil

And d=\rho\times \rho_w (density of oil = specific gravity × density of water )

d=0.92\times 10^3\ kg/m^3

So,  

\mu=v\times d..............(1)

\mu=5.57\times 10^{-4}\ m^2/s\times 0.92\times 10^3\ kg/m^3

\mu=0.512\ Pa-s

The separation between the cylinder and pipe is given by :

dy=\dfrac{d_p-d_c}{2}=\dfrac{8.5-8}{2}=0.25\ cm=0.0025\ m

d_p\ and\ d_c are diameter of pipe and cylinder respectively.  

The mathematical expression for the Newton's law of viscosity can be written as:  

\tau\propto\dfrac{du}{dy}  

\tau=\mu\times \dfrac{du}{dy}..........(2)  

Where  

\tau = Shear stress, \tau=\dfrac{F}{A}............(3)  

\mu = viscosity  

\dfrac{du}{dy} = rate of shear deformation

On rearranging equation (1), (2) and (3) we get :  

\dfrac{F}{A}=v\times \rho\times \dfrac{du}{dy}...............(4)  

A is the area of the cylinder, A=2\pi rl  

Equation (4) becomes :  

F=v\times \rho\times \dfrac{du}{dy}\times 2\pi rl..............(5)

A=\pi d\times l

A=\pi \times 0.08\ m\times 0.5\ m

A=0.125\ m^2

Now, equation (5) becomes :

F=(v\times \rho)\times \dfrac{du}{dy}\times 2\pi rl

F=(0.512\ Pa-s)\times (\dfrac{1}{0.0025\ m})\times \times 0.125\ m^2

F = 25.6 N

<h2>Learn more  </h2>

Kinematic viscosity : brainly.com/question/12947932

<h2>Keyword :  </h2>

Specific gravity, Kinematic viscosity, Area of cylinder, fluid mass density.  

7 0
3 years ago
Which of these is the BEST description of
strojnjashka [21]

Answer:

i would say C but i may be wrong have a great day

Explanation:

3 0
3 years ago
Stone has been used as a building material since ancient times because of its compressive strength, which is the __________.
Doss [256]

Complete Question:

Stone has been used as a building material since ancient times because of its compressive strength, which is the?

Group of answer choices

A. ability to support pressure without breaking.

B. ability to press down and become solidly fixed in the ground.

C. relative weight of a block of stone to its size.

D. force a block exerts on the blocks around it.

Answer:

A. ability to support pressure without breaking.

Explanation:

Stone has been used as a building material since ancient times because of its compressive strength, which is the ability to support pressure without breaking.

Compressive strength can be defined as the ability of a structural element or particular material to withstand an applied, which is aimed at reducing the size of the structural element.

Simply stated, it is the ability of a structural element or material to withstand an applied load without deflections, fracture or having any crack.

In this context, a stone possesses the ability to resist or withstand compression loads.

Some examples of other materials or structural elements having good compressive strength are steel, bones, concrete etc. The standard unit of measurement of the compressive strength of a material is Mega Pascal (MPa) or pound-force per square inch (psi) in the United States of America.

7 0
4 years ago
Other questions:
  • Which of the following statements is true? Entropy has the unit of (A) Heat (B) Work (C) Energy (D) Heat capacity (E) Temperatur
    13·1 answer
  • In which step of the seven-step systematic economic analysis technique (SEAT) would multiple criteria be considered rather than
    10·1 answer
  • 10 kg/s Propane at 10 bar and 20 C is directed to an adiabatic rigid mixer and is mixed with 20 kg/s Propane at 10 bar and 40 C.
    11·1 answer
  • Write a simple calculator program. Your program should ask for three things two whole numbers and an operator in the form of an
    10·1 answer
  • ____ is based on the observation that the rate of increase in transistor density on microchips had increased steadily, roughly d
    9·1 answer
  • Whats better Chevrolet or Ford
    12·2 answers
  • Meaning of construction
    6·1 answer
  • Urgent please help!<br> What are non-ferrous metal and ferrous metal?
    11·1 answer
  • Liquid methanol is pumped from a large storage tank through a 1-in.ID pipe at a rate of 3.00gal/mm.
    5·1 answer
  • a) find the state-space representation of the system. b) is the system controllable? why? c) is the system observable? why
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!