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
Plzzzz helppp design process in order
MA_775_DIABLO [31]

Answer:

generate

define

present

evaluate

develop

construct and test

7 0
2 years ago
The thermal efficiency of two reversible power cycles operating between the same thermal reservoirs will a)- depend on the mecha
mestny [16]
C ,, i’m pretty sure .
4 0
3 years ago
_____ are used to control the flow of electricity in a circuit.
Travka [436]

Answer:

Switches control the flow of electricity in a circuit.

8 0
3 years ago
Read 2 more answers
Chlorine is one of the important commodity chemicals for the global economy. Before the advent of large scale
artcher [175]

The composition of gas in the feed, the percentage conversion and the

theoretical yield are combined to give the product stream composition.

Response:

The composition of gas in the product stream are;

  • HCl: 0.4 kmol/h, Cl₂: 1.6 kmol/h, H₂O: 1.6 kmol/h, O₂: 0.5 kmol/h

<h3>How can percentage conversion give the contents of the product stream?</h3>

The amount of oxygen used = 30% exceeding the theoretical amount

Number of moles of hydrochloric acid = 4 kmol/h

Percentage conversion = 80%

Required:

The composition of the gas in the product feed.

Solution;

The given reaction is; 4HCl + O₂ \longrightarrow 2Cl₂ + 2H₂O

Percentage \ conversion = \mathbf{ \dfrac{Moles \ of \ limiting \ reactant \ reacted}{Moles \  of \ limiting \ reactant \ supplied \ in \ the \, feed}}

Which gives;

80 \% = \mathbf{ \dfrac{Moles \ of \ limiting \ reactant \ reacted}{4 \, kmol/h}}

Moles of limiting reactant reacted = 4 kmol/h × 0.80 = 3.6 kmol/h

Which gives;

Number of moles of HCl in the stream = 4 kmol/h - 3.6 kmol/h = 0.4 kmol/h

Number of moles of Cl₂ produced = 2 kmol/h × 0.8 = 1.6 kmol/h

Similarly;

Number of moles of H₂O produced = 2 kmol/h × 0.8 = 1.6 kmol/h

Number of moles of O₂ in the product stream = 30% × 1 kmol/h + 20% × 1 kmol/h = 0.5 kmol/h

The composition of the production stream is therefore;

  • <u>HCl: 0.4 kmol/h</u>
  • <u>Cl₂: 1.6 kmol/h</u>
  • <u>H₂O: 1.6 kmol/h</u>
  • <u>O₂: 0.5 kmol/h</u>

Learn more about theoretical and actual yield here:

brainly.com/question/14668990

brainly.com/question/82989

7 0
2 years ago
In what way is a spud wrench different from a pipe wrench?<br><br> See picture
maks197457 [2]
A spud wrench and pipe is for install pipes
6 0
2 years ago
Read 2 more answers
Other questions:
  • What is the rms current flowing through a light bulb that uses an average power of 60.0 60.0 W when it is plugged into a wall re
    12·1 answer
  • What happens to a commercial airline at cruising altitude if the pilot does not touch the throttles?
    12·1 answer
  • Define the difference between elastic and plastic deformation in terms of the effect on the crystal lattice structure.
    5·1 answer
  • What is the IMA of a fixed pulley ​
    7·2 answers
  • Please help I need it by today!!!
    10·1 answer
  • What do you think of web 3.0? do you think it will be realized someday in the future?​
    5·1 answer
  • What are the searching algorithms used by search engines?
    11·1 answer
  • Describe two fundamental reasons why flexural strength should depend on porosity
    14·1 answer
  • Write a paragraph on computer 473
    5·1 answer
  • What are the inputs and outputs of a sailboat?
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!