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
An electric power plant uses solid waste for fuel in the production of electricity. The cost Y in dollars per hour to produce el
andrew-mc [135]

Answer:

15.64 MW

Explanation:

The computation of value of X that gives maximum profit is shown below:-

Profit = Revenue - Cost

= 15x - 0.2x 2 - 12 - 0.3x - 0.27x 2

= 14.7x - .47x^2 - 12

After solving the above equation we will get maximum differentiate  for profit that is

14.7 - 0.94x = 0

So,

x = 15.64 MW

Therefore for computing the value of X that gives maximum profit we simply solve the above equation.

8 0
4 years ago
Identify factors that can cause a process to become out of control. Give several examples of such factors.
Oliga [24]

Answer:

Explained

Explanation:

This situation can occur because of various factors such as:

  • Gradual deterioration of lubrication and coolant.
  • change of environmental condition such as temperature, humidity, moisture, etc.
  • Change in the properties of incoming raw material
  • An increase or decrease in the temperature of the heat treating operation
  • Debris interfering with the manufacturing process.
4 0
3 years ago
A company purchases a certain kind of electronic device from a manufacturer. The manufacturer indicates that the defective rate
olga2289 [7]

Answer:

1) The probability of at least 1 defective is approximately 45.621%

2) The probability that there will be exactly 3 shipments each containing at least 1 defective device among the 20 devices that are tested from the shipment is approximately 16.0212%

Explanation:

The given parameters are;

The defective rate of the device = 3%

Therefore, the probability that a selected device will be defective, p = 3/100

The probability of at least one defective item in 20 items inspected is given by binomial theorem as follows;

The probability that a device is mot defective, q = 1 - p = 1 - 3/100 = 97/100 = 0.97

The probability of 0 defective in 20 = ₂₀C₀(0.03)⁰·(0.97)²⁰ ≈ 0.543794342927

The probability of at least 1 = 1 - The probability of 0 defective in 20

∴ The probability of at least 1 = 1 - 0.543794342927 = 0.45621

The probability of at least 1 defective ≈ 0.45621 = 45.621%

2) The probability of at least 1 defective in a shipment, p ≈ 0.45621

Therefore, the probability of not exactly 1 defective = q = 1 - p

∴ q ≈ 1 - 0.45621 = 0.54379

The probability of exactly 3 shipment with at least 1 defective, P(Exactly 3 with at least 1) is given as follows;

P(Exactly 3 with at least 1) = ₁₀C₃(0.45621)³(0.54379)⁷ ≈ 0.160212

Therefore, the probability that there will be exactly 3 shipments each containing at least 1 defective device among the 20 devices that are tested from the shipment is 16.0212%

4 0
3 years ago
A piece of aluminum wire is 500 ft long and has a diameter of 0.03 inches. What is the resistance of the piece of wire?​
dexar [7]

Answer:

8.85 Ω

Explanation:

Resistance of a wire is:

R = ρL/A

where ρ is resistivity of the material,

L is the length of the wire,

and A is the cross sectional area.

For a round wire, A = πr² = ¼πd².

For aluminum, ρ is 2.65×10⁻⁸ Ωm, or 8.69×10⁻⁸ Ωft.

Given L = 500 ft and d = 0.03 in = 0.0025 ft:

R = (8.69×10⁻⁸ Ωft) (500 ft) / (¼π (0.0025 ft)²)

R = 8.85 Ω

5 0
4 years ago
The ice on the rear window of an automobile is defrosted by attaching a thin, transparent, film type heating element to its inne
pshichka [43]

Answer:

A)Q = 1208.33 W/m²

B)K = 0.138 W/m.K

Explanation:

We are given;

inside air temperature;T_∞,i =25 °C = 25 + 273 = 298K

outside air temperature;T_∞,o = -10°C = - 10 + 273 = 263K

Inner surface temperature;T_s,i = 15 °C = 15 + 273 = 288K

Thickness, L = 4mm = 0.004m

convection heat transfer coefficient ; hi = 25 W/(m².K)

A) From an energy balance at the inner surface and the thermal circuit, the electric power required per unit window area is given as;

Q = [(T_s,i - T_∞,o)/((L/k) + (1/hi))] - [(T_∞,o - T_s,i)/(1/hi)]

Plugging in the relevant values with k for glass as 1.4 W/m.k, we have;

Q = [(288 - 263)/((0.004/1.4) + (1/25))] - [(263 - 288)/(1/25)]

Q = 583.33 + 625

Q = 1208.33 W/m²

B) The formula for thermal conductivity is;

K = (QL)/(AΔT)

Where;

K is the thermal conductivity in W/m.K

Q is the amount of heat transferred through the material

L is the distance between the two isothermal planes

A is the area of the surface in square meters

ΔT is the difference in temperature in Kelvin

ΔT = 298K - 263K = 35K

Now, since we have value of heat per unit area to be Q = 1208.33 W/m², let's rearrange the equation to reflect that; Thus ;

k = (Q/A) x (L/ΔT)

K = 1208.33 x (0.004/35)

K = 0.138 W/m.K

5 0
3 years ago
Other questions:
  • At the instant shown, slider block B is moving with a constant acceleration, and its speed is 150 mm/s. Knowing that after slide
    13·1 answer
  • A Scalar can only be a positive quantity that has a magnitude but no direction ? a)-True b)-False
    5·1 answer
  • A compression ignition engine when tested gave an indicator card having area 3250mm^2 and length 73mm. The calibration factor wa
    10·1 answer
  • You are given a partial implementation of one header file, GildedRose.hpp. Item is a class that holds the information for each i
    6·1 answer
  • A dc shunt motor rated at 240 V has a field winding resistance of 120 Ω and an armature resistance of 0.12 Ω. The motor is suppl
    14·1 answer
  • In a surface grinding operation, the wheel diameter = 8.0 in, wheel width = 1.0 in, wheel speed = 6000 ft/min, work speed = 40 f
    9·1 answer
  • Determine the design angle ϕ (0∘≤ϕ≤90 ∘) between struts AB and AC so that the 400 lb horizontal force has a component of 600 lb
    10·1 answer
  • A smoking lounge is to accommodate 19 heavy smokers. The minimum fresh air requirement for smoking lounges is specified to be 30
    11·1 answer
  • Describe the are of mechanical engineering
    6·2 answers
  • Which of the following is an example of a social need?
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!