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]
3 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]3 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
Briefly explain the term soil sampling and outline its importance in building engineering works.
Nataliya [291]

Answer:

For civil engineering, the importance is that you want to ensure that your construction is in a good sturdy location.

Explanation:

Im at UNCC as a civil engineering student

4 0
1 year ago
What type of footwear protects your toes from falling objects and being crushed?
Lady bird [3.3K]

Answer:Steel toe

Explanation:

6 0
3 years ago
Read 2 more answers
Sort the following alphabets using MergeSort and give required steps. [2 Marks]
OlgaM077 [116]

Answer:

I'm afraid i can't visualise it to you but visit the site below to help you out <3

Explanation:

https://opendsa-server.cs.vt.edu/embed/mergesortAV

4 0
3 years ago
Can u say what’s this
tatuchka [14]

Answer:

particles of a solid object packed together

7 0
2 years ago
Read 2 more answers
Which of the following statements about resistance is TRUE?
valentina_108 [34]

Answer:

I think it's the no 3rd

Explanation:

hope this helps

3 0
2 years ago
Other questions:
  • A cable in a motor hoist must lift a 700-lb engine. The steel cable is 0.375in. in diameter. What is the stress in the cable?
    12·1 answer
  • What is temperature coefficient of resistance
    12·1 answer
  • What is your employer required to have on fixed ladders that extend more than 24 feet in the workplace?
    15·2 answers
  • A diesel engine with an engine volume of 4.0 L and an engine speed of 2500 rpm operates on an air–fuel ratio of 18 kg air/kg fue
    6·2 answers
  • You are using a Geiger counter to measure the activity of a radioactive substance over the course of several minutes. If the rea
    6·1 answer
  • 37. In ______ combination of drugs, the effects of one drug cancel or diminish
    12·1 answer
  • Name the ferrous metal that most workshop tools are made from??
    12·2 answers
  • The electrical panel schedules are located on EWR Plan number ___.
    13·1 answer
  • How do you build a house.
    15·1 answer
  • 28. What is the value of a resistor in a series circuit if you measure 0.5 amps flowing through it and 15 volts
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!