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
Which of the following is a purpose of sports biomechanics?
Firdavs [7]
I say A because, During a Biomechanical assessment we are able to track even further up the body, to lower back pain caused by the feet. Biomechanics is the tool that understands human movement and has also become hugely popular amongst sports athletes as it is used to enhance athletic performance and prevent injury, too.
7 0
3 years ago
In surveying , supposing we can not pull the tape because it is passing through a shallow river. What will i do to obtain an acc
natulia [17]

Answer:

Hold the tape in place and go down to the end.

Explanation:

7 0
2 years ago
PLEASE HELP
Anna11 [10]
PLEASE HELP
NASA scientists have determined that the chance a single person would get hit by a piece of falling satellite is one in 3,200. What can you infer based on this probability?



A. Satellites that enter Earth’s atmosphere land mostly in the ocean.


B. NASA does a good job informing people of when satellites will enter the atmosphere.


C. Satellites that enter Earth’s atmosphere land mostly in unpopulated areas.


D. Much of a satellite is destroyed during the process of entering Earth’s atmosphere.
8 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 30.00 a
IrinaVladis [17]

Answer:

The original length of the specimen l_{o} = 104.7 mm

Explanation:

Original diameter d_{o} = 30 mm

Final diameter d_{1} = 30.04 mm

Change in diameter Δd = 0.04 mm

Final length l_{1} = 105.20 mm

Elastic modulus E = 65.5 G pa = 65.5 × 10^{3} M pa

Shear modulus G = 25.4 G pa = 25.4 × 10^{3} M pa

We know that the relation between the shear modulus & elastic modulus is given by

G = \frac{E}{2(1 + \mu)}

25.5 = \frac{65.5}{2 (1 + \mu)}

\mu = 0.28

This is the value of possion's ratio.

We know that the possion's ratio is given by

\mu = \frac{\frac{0.04}{30} }{\frac{change \ in \ length}{l_{o} } }

{\frac{change \ in \ length}{l_{o} } = \frac{\frac{0.04}{30} }{0.28}

{\frac{change \ in \ length}{l_{o} } = 0.00476

\frac{l_{1} - l_{o}  }{l_{o}  } = 0.00476

\frac{l_{1} }{l_{o} } = 1.00476

Final length l_{o} = 105.2 m

Original length

l_{o} = \frac{105.2}{1.00476}

l_{o} = 104.7 mm

This is the original length of the specimen.

5 0
3 years ago
If the driver gear has 5 teeth and the driven gear has 10 teeth,what is the gear ratio?​
shepuryov [24]
The on that has ten teeth
6 0
3 years ago
Read 2 more answers
Other questions:
  • ¿Por qué creen que la Ingeniería Metalúrgica es una carrera estratégica para el desarrollo de nuestro país?
    9·1 answer
  • If 20 kg of iron, initially at 12 °C, is added to 30 kg of water, initially at 90 °C, what would be the final temperature of the
    6·1 answer
  • 1- A square-wave inverter has a dc source of 96 V and an output frequency of 60 Hz. The load is a series RL load with R = 5 Ohm
    7·1 answer
  • 1. A farmer had 752 sheep and took one shot that got them all. How did he do it?
    9·1 answer
  • The temperature of a gas stream is to be measured by a thermocouple whose junction can be approximated as a 1.2-mm-diameter sphe
    7·1 answer
  • Consider the gas carburizing of a gear of 1018 steel (0.18 wt %) at 927°C (1700°F). Calculate the time necessary to increase the
    12·1 answer
  • Drag each label to the correct location on the image.
    5·2 answers
  • I need solution fast plesss​
    9·1 answer
  • If the 2007 recession affected the green building materials market less seriously than other parts of the construction market, t
    12·2 answers
  • A composite plane wall consists of a 5-in.-thick layer of insulation (ks = 0.029 Btu/h*ft*°R) and a 0.75-in.-thick layer of sidi
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!