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
Answer the following either true (T) or false (F) (5 pts)
likoan [24]

Answer:

1. True

2. True

3. False

Explanation:

The office location is where the soil layer is not uniform. The thickness of the soil varies which could lead to doors being jammed. The engineer needs to estimate the differential in clay soil.

The inclined surface can hold less weight than a vertical surface. The capacity to hold the weight is due to the gravitational force which is exerted to the load.

6 0
3 years ago
On a average work day more than work place firs are reorted​
Basile [38]
What is the question? It looks like a statement...
8 0
3 years ago
Match each context to the type of the law that is most suitable for it.
Bas_tet [7]

Answer:

sorry i dont understand the answer

Explanation:

but i think its a xd jk psml lol

5 0
3 years ago
A(n) ____ is an object setting used to control the visible display of objects.
KatRina [158]
Remote?? maybe I’m not really sure
3 0
3 years ago
What is the area enclosed by the cycle area of the Carnot cycle illustrating on a P-V diagram?
Inga [223]

Answer:

The work of the cycle.

Explanation:

The area enclosed by the cycle of the Pressure-Volume diagram of a Carnot engine represents the net work performed by the cycle.

The expansions yield work, and this is represented by the area under the curve all the way to the p=0 line. But the compressions consume work (or add negative work) and this is substracted fro the total work. Therefore the areas under the compressions are eliminated and you are left with only the enclosed area.

7 0
3 years ago
Other questions:
  • If a building is too humid, what harmful substance may be stored there?
    13·2 answers
  • Do YOU have big brain?
    15·2 answers
  • Which of the following waste characteristic is considered to be hazardous:
    15·1 answer
  • The value 100 MW is equivalent to (a) 100×10^6 w (b) 100 x 10^-6 w (c) 100 x 10^-3 w (d) 100 x 10^3 w
    14·1 answer
  • As an engineer which types of ethical issues or problem you can face in industrial environment.
    8·1 answer
  • What can you add to a seatbelt ??<br> HELP ASAP
    15·1 answer
  • Solved this question??????????????????
    13·1 answer
  • if stall speed in ktas for an aircraft us 100 ktas at sea level, what is the stall speed in ktas of the aircraft at 5000 ft dens
    7·1 answer
  • How is an orthographic drawing similar to or different from an isometric drawing?
    14·2 answers
  • A 2-bit positive-edge triggered register has data inputs d1, d0, clock input clk, and outputs q1, q0. Data inputs d1d0 are 01 an
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!