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
An interrupted line of sight means changes in ......and .... are necessary for re-establishing a ......... to the driver’s path
Mrrafil [7]

Answer:

Welcome to Gboard clipboard, any text that you copy will be saved here.

Explanation:

Touch and hold a clip to pin it. Unpinned clips will be deleted after 1 hour.

5 0
2 years ago
Two previously undeformed rod-shaped specimens of copper are to be plastically deformed by reducing their cross-sectional areas.
mezya [45]
I am not sure I am stuck on this and I have been for 45 min someone please help me and this girl or boy!!
4 0
3 years ago
what are the characteristics of an ideal fluid the general relation between shear stress and velocity gradient​
Dafna11 [192]

Answer:

ideal fluid follow Newtonian law

that is, shear stress is directly proportional to rate change of shear strain.

watch handwritten explanation

6 0
3 years ago
You can assume there is no pressure drop between the exit of the compressor and the entrance of the turbine. All the power from
Eddi Din [679]

Answer:

s6rt5x11j4fgu

j4

cf53yhu5

y4

hh

Explanation:

j

6 0
3 years ago
How is the difference between science and engineering Best stated?
stiv31 [10]

Answer:Science is the body of knowledge that explores the physical and natural world. Engineering is the application of knowledge in order to design, build and maintain a product or a process

Explanation:

8 0
2 years ago
Other questions:
  • Which type of door consists of thin pieces of wood, glass, or louvers placed within a framed rectangular area?
    7·2 answers
  • Water flovs in a pipe of diameter 150 mm. The velocity of the water is measured at a certain spot which reflects the average flo
    13·1 answer
  • The market for college textbooks is illustrated in the graph below. In the market for textbooks, the current price of a textbook
    11·1 answer
  • Create a C language program that can be used to construct any arbitrary Deterministic Finite Automaton corresponding to the FDA
    6·1 answer
  • Write a function named "total_population" that takes a string then a list as parameters where the string represents the name of
    5·1 answer
  • Please help I need it by today!!!
    10·1 answer
  • Simplify the following expressions, then implement them using digital logic gates. (a) f = A + AB + AC (b) f = AB + AC + BC (c)
    5·1 answer
  • Describe how a cavity wall works and sketch its major construction features. What aspects of cavity wall construction are most c
    5·1 answer
  • Define a separate subroutine for each of the following tasks respectively.
    6·2 answers
  • Are there engineering students here?​
    5·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!