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
k0ka [10]
4 years ago
8

declare integer product declare integer number product = 0 do while product < 100 display ""Type your number"" input number p

roduct = number * 10 loop display product End While
Engineering
1 answer:
Brilliant_brown [7]4 years ago
4 0

Full Question

1. Correct the following code and

2. Convert the do while loop the following code to a while loop

declare integer product

declare integer number

product = 0

do while product < 100

display ""Type your number""

input number

product = number * 10

loop

display product

End While

Answer:

1. Code Correction

The errors in the code segment are:

a. The use of do while on line 4

You either use do or while product < 100

b. The use of double "" as open and end quotes for the string literal on line 5

c. The use of "loop" statement on line 7

The correction of the code segment is as follows:

declare integer product

declare integer number

product = 0

while product < 100

display "Type your number"

input number

product = number * 10

display product

End While

2. The same code segment using a do-while statement

declare integer product

declare integer number

product = 0

Do

display "Type your number"

input number

product = number * 10

display product

while product < 100

You might be interested in
Speed limit signs are classified as
luda_lava [24]

Answer:

B. Regulatory signs

Explanation:

traffic rules

5 0
3 years ago
Read 2 more answers
A cylindrical specimen of a hypothetical metal alloy is stressed in compression. If its original and final diameters are 19.636
luda_lava [24]

Answer:

The original length of the specimen is found to be 76.093 mm.

Explanation:

From the conservation of mass principal, we know that the volume of the specimen must remain constant. Therefore, comparing the volumes of both initial and final state as state 1 and state 2:

Initial Volume = Final Volume

πd1²L1/4 = πd2²L2/4

d1²L1 = d2²L2

L1 = d2²L2/d1²

where,

d1 = initial diameter = 19.636 mm

d2 = final diameter = 19.661 mm

L1 = Initial Length = Original Length = ?

L2 = Final Length = 75.9 mm

Therefore, using values:

L1 = (19.661 mm)²(75.9 mm)/(19.636 mm)²

<u>L1 = 76.093 mm</u>

5 0
3 years ago
Wobble extensions allows the socket to pivot.<br> O True<br> O False
Agata [3.3K]
True

(I’m not sure if that’s right a picture below may help with the answer too)

4 0
3 years ago
FRIDAY<br> What does a lockbar do?
IrinaK [193]

Answer:

it increases the life of a frame lock

Explanation:

because it decreases wear on the lock face

6 0
2 years ago
Read 2 more answers
Air initially at 15 psla and 60 F is compressed to 75 psia and 400 F. The power input to air under steady state condition is 5 h
Triss [41]

Answer:\dot{m}=3.46lbm/min

Explanation:

Initial conditions

P_1=15 psia

T_1=60 F^{\circ}

Final conditions

P_2=75 psia

T_2=400F^{\circ}

Steady flow energy equation

\dot{m}\left [ h_1+\frac{v_1^2}{2}+gz_1\right ]+\dot{Q}=\dot{m}\left [ h_2+[tex]\frac{v_2^2}{2}+gz_2\right ]+\dot{W}

\dot{m}\left [ c_pT_1+\frac{0^2}{2}+g0\right ]+\dot{Q}=\dot{m}\left [ c_pT_2+\frac{0^2}{2}+g0\right ]+\dot{W}

\dot{m}c_p\left [ T_1-T_2\right ]+\left [ -5hp\right ]=\dot{W} -5\times 746\times 3.4121

-4\dot{m}-\dot{m}\times 0.24\times \left [ 400-60\right ]

-81.6\dot{m}-4\dot{m}=-4.949 BTU/sec

\dot{m}=0.057821lbm/sec

\dot{m}=3.46lbm/min

3 0
3 years ago
Other questions:
  • 6.28 A six-lane freeway (three lanes in each direction) in rolling terrain has 10-ft lanes and obstructions 4 ft from the right
    11·1 answer
  • Please help!!
    7·2 answers
  • DNA isolated from water samples collected in six different sites was prepared and analyzed by gel electrophoresis for the presen
    12·1 answer
  • What is the magnitude of the maximum stress that exists at the tip of an internal crack having a radius of curvature of 2.5×10-4
    13·1 answer
  • For potassium chloride (KCl), calculate the radius ratio to show why the compound has the cesium chloride structure.
    14·1 answer
  • Type the correct answer in the box. Spell all words correctly.
    11·2 answers
  • A barometer reads a height of 78 cmHg. Express this atmospheric pressure to:
    15·2 answers
  • PLEASEE HELP.!! ILL GIVE BRAINLIEST.!! *EXTRA POINTS* DONT SKIP:((
    7·2 answers
  • Calculate the resistance of a circuit with 1.5 A and 120 V. Use the appropriate formula from the list of formulas on the
    9·1 answer
  • Are you?
    7·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!