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
An amplifier which needs a high input resistance and a high output resistance is : Select one: a. A voltage amplifier b. None of
True [87]

Answer:

None of these

Explanation:

There are different types of amplifiers, and each has different characteristics.

  • Voltage amplifier needs high input and low output  resistance.
  • Current amplifier needs Low Input and High Output  resistance.
  • Trans-conductance amplifier Low Input and High Output resistance.
  • Trans-Resistance amplifier requires High Input and Low output  resistance.

Therefore, the correct answer is "None of these "

3 0
2 years ago
(a) For a given material, would you expect the surface energy to be greater than, the same as, or less than the grain boundary e
aksik [14]

Answer:

(a) Surface energy is greater than grain boundary energy due to the fact that the bonds of the atoms on the surface are lower than those of the atoms at the grain boundary. The energy is also directly proportional to the number of bonds created.

(b) The energy of a high-angle grain boundary is higher than that of a small-angle grain boundary because the high-angle grain boundary has a higher misalignment and smaller number of bonds than a small-angle grain boundary.

Explanation:

(a) Surface energy is greater than grain boundary energy due to the fact that the bonds of the atoms on the surface are lower than those of the atoms at the grain boundary. The energy is also directly proportional to the number of bonds created.

(b) The energy of a high-angle grain boundary is higher than that of a small-angle grain boundary because the high-angle grain boundary has a higher misalignment and smaller number of bonds than a small-angle grain boundary.

5 0
2 years ago
Why are funeral home adding dining facilities to the business
Gelneren [198K]
Because they think it will make them more money
5 0
2 years ago
The acceleration due to gravity on the surface of the moon is 1.62m/s^2. The moon's radius is Rm+1738km. A) What is the weight i
Anastaziya [24]

Answer:

weight is 12.6 N

force is 4.05 N

Explanation:

given data

acceleration = 1.62 m/s²

radius = 1738 km

mass = 10 kg

distance = 1738 km

to find out

weight and force

solution

we apply here weight formula that is

weight =  mass × acceleration    ...................1

put here value

weight =  10 × 1.26

weight = 12.6 N

and

force = mass × An

force = 10 × 1.62 (1738/ 1738+1738)² = 4.05 N

so force is 4.05 N

4 0
3 years ago
2. After performing an oil change on a vehicle,
andrey2020 [161]

Answer:

2. - reset

3 - changes

4 - checking

Hope this helps

Explanation:

2 - You may have to reset the computer that contains the miles until next oil change.

3 - Tire pressure may change based on what the car is setting on and weather condition.

4 - The spare may loose pressure and should be checked to make sure it is still safe to use if needed

4 0
3 years ago
Other questions:
  • A distillation column is initially designed to separate a mixture of toluene and xylene at around ambient temperature (say, 100°
    13·1 answer
  • A sheet of steel 4.4 mm thick has nitrogen atmospheres on both sides at 1200°C and is permitted to achieve a steady-state diffus
    10·1 answer
  • A. For a 200g load acting vertically downwards at point B’, determine the axial load in members A’B’, B’C’, B’D’, C’D’ and C’E’.
    8·1 answer
  • Consider a CMOS inverter which has ideal transistors with the following characteristics: PMOS transistor: W/L = 2; Mobility (up)
    13·1 answer
  • Two piezometers have been placed along the direction of flow in a confined aquifer that is 30.0 m thick. The piezometers are 280
    6·1 answer
  • A 0.9% solution of NaCl is considered isotonic to mammalian cells. what molar concentration is this?
    10·1 answer
  • Automobile engines normally have
    8·1 answer
  • 1<br>M<br>A BLIND COOK WHO DEFEATED<br>OVER 30,000 HOME COOKS!<br>y of​
    13·1 answer
  • Which system provides an easier way for people to communicate with a computer than a graphical user interface (GUI)?
    15·1 answer
  • Name two common fuel gases that can be used for oxyfuel cutting
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!