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
In an experiment, the local heat transfer over a flat plate were correlated in the form of local Nusselt number as expressed by
Stells [14]

Answer:

\dfrac{\bar{h}}{h}=\dfrac{5}{4}

Explanation:

Given that

Nu_x=0.035Re_x^{0.8} Pr^{1/3}

We know that

Rex=ρvx/μ

So

Nu_x=0.035Re_x^{0.8} Pr^{1/3}

Nu_x=0.035\times\left(\dfrac{\rho vx}{\mu}\right)^{0.8}Pr^{1/3}

All other quantities are constant only x is a variable in the above equation .so lets take all other quantities as a constant C

Nu_x=C.x^{0.8}=C.x^{4/5}

We also know that

Nux=hx/K

C.x^{4/5}=\dfrac{hx}{k}

m is the constant

h=mx^{-1/5}

This is local heat transfer coefficient

The average value of h given as

\bar{h}=\dfrac{\int_{0}^{L}hdx}{L}

\bar{h}=\dfrac{5m}{4}\times\dfrac{L^{4/5}}{L}

\bar{h}=\dfrac{5m}{4}L^{-1/5}             ---------1

The value of local heat transfer coefficient at x=L

h=mx^{-1/5}

h=mL^{-1/5}            -----------2

From 1 and 2 we can say that

\dfrac{\bar{h}}{h}=\dfrac{5}{4}

8 0
3 years ago
A cast-iron tube is used to support a compressive load. Knowing that E 5 10 3 106 psi and that the maximum allowable change in l
Papessa [141]

Answer:

(a) 2.5 ksi

(b) 0.1075 in

Explanation:

(a)

E=\frac {\sigma}{\epsilon}

Making \sigma the subject then

\sigma=E\epsilon

where \sigma is the stress and \epsilon is the strain

Since strain is given as 0.025% of the length then strain is \frac {0.025}{100}=0.00025

Now substituting E for 10\times 10^{6} psi then

\sigma=(10\times 10^{6} psi)\times 0.00025=2500 si= 2.5 ksi

(b)

Stress, \sigma= \frac {F}{A} making A the subject then

A=\frac {F}{\sigma}

A=\frac {\pi(d_o^{2}-d_i^{2})}{4}

where d is the diameter and subscripts o and i denote outer and inner respectively.

We know that 2t=d_o - d_i where t is thickness

Now substituting

\frac {\pi(d_o^{2}-d_i^{2})}{4}=\frac {1600}{2500}

\pi(d_o^{2}-d_i^{2})=\frac {1600}{2500}\times 4

(d_o^{2}-d_i^{2})=\frac {1600}{2500\times \pi}\times 4

But the outer diameter is given as 2 in hence

(2^{2}-d_i^{2})=\frac {1600}{2500\times \pi}\times 4

2^{2}-(\frac {1600}{2500\times \pi}\times 4)=d_i^{2}

d_i=\sqrt {2^{2}-(\frac {1600}{2500\times \pi}\times 4)}=1.784692324 in\approx 1.785 in

As already mentioned, 2t=d_o - d_i hence t=0.5(d_o - d_i)

t=0.5(2-1.785)=0.1075 in

3 0
3 years ago
How do you solve this. I dont know how so I need steps if you dont mind
galben [10]

Explanation:

all I know is every number that have a bar on is equal to one

4 0
2 years ago
A certain piece of property is assessed at $150,000. If the tax rate is $2.50 per $100, what is the tax on this property?
stiks02 [169]

Answer:

The tax on this property is 3750 dollars

Explanation:

Given

Tax on per $100 is $2.50

Tax on every $1 is \frac{2.5}{100} = 0.025 dollars

Tax on property of value $150,000 is

150,000 * 0.025 = 3750 dollars

The tax on this property is 3750 dollars

7 0
2 years ago
A gas mixture containing 3 moles CO2, 5 moles H2 and 1 mole water is undergoing the following reactions CO2+3H2 →cH3OH + H2O Dev
Ilya [14]
Aaaaaaaaaaaaaaaaaaaaaa
7 0
2 years ago
Other questions:
  • Hi, I have an assignment in which i needs to write a report on (Rationalization of electrical energy consumption) and i need cha
    6·1 answer
  • Choose the true statement from those shown below: A Merchant Account allows you to use SSL on your web site. Disadvantages of us
    14·1 answer
  • A ceramic material can be defined as an organic compound consisting of a metal or semimetal and one or more nonmetals: (a) true
    9·1 answer
  • An object at a vertical elevation of 20 m and a speed of 5 m/s decreases in elevation to an elevation of 1 m. At this location,
    15·1 answer
  • Determine the average power, complex power and power factor (including whether it is leading or lagging) for a load circuit whos
    9·2 answers
  • . (20 pts) A horizontal cylindrical pipe (k = 10 W/m·K) has an outer diameter of 15 cm and a wall thickness of 5 cm. The pipe is
    14·1 answer
  • I need this asap thank you :) plzzzzz When the spring on a mousetrap car is fully unwound, the force acting on the car is _____.
    11·1 answer
  • Sarah and Raj take/takes me to a baseball game every year.
    11·1 answer
  • THIS IS NOT AN ACADEMIC QUESTION, but who was the bitter of 1987 in FNAF?
    6·2 answers
  • A proposed embankment fill requires 7100 ft of compacted soil. The void ratio of the compacted fill is specified as 0.5. Four bo
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!