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
Zanzabum
3 years ago
6

Write a Nested While Loop that will increment the '*' from 1 to 10.

Engineering
1 answer:
andrey2020 [161]3 years ago
8 0

Answer:

The program is as follows:

i = 1

while(i<11):

   j = 1

   while(j<=i):

       print('*', end = '')

       j += 1

   i += 1

   print()

Explanation:

Initialize i to 1

i = 1

The outer loop is repeated as long as i is less than 11

while(i<11):

Initialize j to 1

   j = 1

The inner loop is repeated as long as j is less than or equal i

   while(j<=i):

This prints a *

       print('*', end = '')

This increments j and ends the inner loop

       j += 1

This increments i

   i += 1

This prints a blank and ends the inner loop

   print()

You might be interested in
What entrepreneurial activities do you know?are you capable of doing entrepreneurial activities
kherson [118]

Answer:

.,m

Explanation:

.,m

5 0
3 years ago
Consider a single crystal of nickel oriented such that a tensile stress is applied along a [001] direction. If slip occurs on a
Elena L [17]

Answer:

\mathbf{\tau_c =5.675 \ MPa}

Explanation:

Given that:

The direction of the applied tensile stress =[001]

direction of the slip plane = [\bar 101]

normal to the slip plane = [111]

Now, the first thing to do is to calculate the angle between the tensile stress and the slip by using the formula:

cos \lambda = \Big [\dfrac{d_1d_2+e_1e_2+f_1f_2}{\sqrt{(d_1^2+e_1^2+f_1^2)+(d_2^2+e_2^2+f_2^2) }} \Big]

where;

[d_1\ e_1 \ f_1] = directional indices for tensile stress

[d_2 \ e_2 \ f_2] = slip direction

replacing their values;

i.e d_1 = 0 ,e_1 = 0 f_1 =  1 & d_2 = -1 , e_2 = 0 , f_2 = 1

cos \lambda = \Big [\dfrac{(0\times -1)+(0\times 0) + (1\times 1) }{\sqrt{(0^2+0^2+1^2)+((-1)^2+0^2+1^2) }} \Big]

cos \ \lambda = \dfrac{1}{\sqrt{2}}

Also, to find the angle \phi between the stress [001] & normal slip plane [111]

Then;

cos \  \phi = \Big [\dfrac{d_1d_3+e_1e_3+f_1f_3}{\sqrt{(d_1^2+e_1^2+f_1^2)+(d_3^2+e_3^2+f_3^2) }} \Big]

replacing their values;

i.e d_1 = 0 ,e_1 = 0 f_1 =  1 & d_3 = 1 , e_3 = 1 , f_3 = 1

cos \  \phi= \Big [ \dfrac{ (0 \times 1)+(0 \times 1)+(1 \times 1)} {\sqrt {(0^2+0^2+1^2)+(1^2+1^2 +1^2)} } \Big]

cos \phi= \dfrac{1} {\sqrt{3} }

However, the critical resolved SS(shear stress) \mathbf{\tau_c} can be computed using the formula:

\tau_c = (\sigma )(cos  \phi )(cos \lambda)

where;

applied tensile stress \sigma = 13.9 MPa

∴

\tau_c =13.9\times (  \dfrac{1}{\sqrt{2}} )( \dfrac{1}{\sqrt{3}})

\mathbf{\tau_c =5.675 \ MPa}

3 0
3 years ago
A closed system consisting of 4 lb of a gas undergoes a process during which the relation between pressure and volume is pVn 5 c
gayaneshka [121]

Answer:

V1=5<u>ft3</u>

<u>V2=2ft3</u>

n=1.377

Explanation:

PART A:

the volume of each state is obtained by multiplying the mass by the specific volume in each state

V=volume

v=especific volume

m=mass

V=mv

state 1

V1=m.v1

V1=4lb*1.25ft3/lb=5<u>ft3</u>

state 2

V2=m.v2

V2=4lb*0.5ft3/lb=  <u> 2ft3</u>

PART B:

since the PV ^ n is constant we can equal the equations of state 1 and state 2

P1V1^n=P2V2^n

P1/P2=(V2/V1)^n

ln(P1/P2)=n . ln (V2/V1)

n=ln(P1/P2)/ ln (V2/V1)

n=ln(15/53)/ ln (2/5)

n=1.377

3 0
3 years ago
Fuel filters are being replaced on a HPCR diesel
saw5 [17]

Answer:) The correct answer is B. at the end of the fuel rail.

2) The one who is correct is the Technician A.

Explanation:

7 0
3 years ago
Calculate the reluctance of a 4-meter long toroidal coil made of low-carbon steel with an inner radius of 1.75 cm and an outer r
My name is Ann [436]

Answer:

R = 31.9 x 10^(6) At/Wb

So option A is correct

Explanation:

Reluctance is obtained by dividing the length of the magnetic path L by the permeability times the cross-sectional area A

Thus; R = L/μA,

Now from the question,

L = 4m

r_1 = 1.75cm = 0.0175m

r_2 = 2.2cm = 0.022m

So Area will be A_2 - A_1

Thus = π(r_2)² - π(r_1)²

A = π(0.0225)² - π(0.0175)²

A = π[0.0002]

A = 6.28 x 10^(-4) m²

We are given that;

L = 4m

μ_steel = 2 x 10^(-4) Wb/At - m

Thus, reluctance is calculated as;

R = 4/(2 x 10^(-4) x 6.28x 10^(-4))

R = 0.319 x 10^(8) At/Wb

R = 31.9 x 10^(6) At/Wb

8 0
3 years ago
Other questions:
  • A horizontal 2-m-diameter conduit is half filled with a liquid (SG=1.6 ) and is capped at both ends with plane vertical surfaces
    11·1 answer
  • If a barrel of oil weighs 1.5 kN, calculate the specific weight, density, and specific gravity of the oil. The barrel weighs 110
    7·1 answer
  • By efficiency, we generally mean the ratio of the desired output to the required input. That is, efficiency is a measure of what
    7·1 answer
  • A well penetrates an unconfined aquifer. Prior to pumping, the water level (head) is 25 meters. After a long period of pumping a
    14·1 answer
  • What's the best way to find the load capacity of a crane? Select the best option. Call the manufacturer Ask co-workers Look at t
    8·1 answer
  • What are two reasons why Hunter edjucation is important?<br><br><br> 30 pts
    12·1 answer
  • If you are involved in a collision and your vehicle is blocking the flow of traffic, you should
    5·1 answer
  • Which happens when a wave passes through an opening
    12·2 answers
  • Calculate the percentage of recyclables in high socioeconomic localities.
    13·1 answer
  • Why do stores still sell those 1.5 volt batteries that are like three times the size of other 1.5 volt batteries. What is the po
    9·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!