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
What are the height and width of scissors?
timofeeve [1]
Short ones are 4.5 inches but long ones can be up to 8 inches.
8 0
2 years ago
Why does a foil airplane fly farther than a paper one?
Free_Kalibri [48]

Answer:

the reason paper airplanes fly is because of lift the foil has no lift

Explanation:

5 0
3 years ago
The universe is sometimes described as an isolated system. Why?
Romashka [77]

Answer and Explanation :The universe means it includes everything, even the things which we can not see is an isolated system because universe has no surroundings. an isolated system does not exchange energy or matter with its surroundings.Sometime universe is treated as isolated system because it obtains lots of energy from the sun but the exchange of matter or energy with outside is almost zero.

  • the total energy of an isolated system is always constant means total energy of universe is also constant
  • there is no exchange of matter or energy in an isolated system
8 0
3 years ago
The top 3 most popular male names of 2017 are Oliver, Declan, and Henry according to babynames. Write a program that modifies th
Flura [38]

Answer:

The code is given below in Python with appropriate comments

Explanation:

# convert list to set

male_names = set(['Oliver','Declan','Henry'])

# get remove and add name from user

remove_name = input("Enter remove name: ")

add_name = input("Enter add name: ")

# remove name from set

male_names.remove(remove_name)

# add new name ij set

male_names.add(add_name)

# sort the set

a = sorted(male_names)

# print the set

print(a)

7 0
3 years ago
ME<br> And what you know about love
antoniya [11.8K]

Answer:

Everything I got what you need

7 0
3 years ago
Other questions:
  • 3. Air at 1 atm and 20 0 C flows tangentially on both sides of a smooth flat plate of width W=10 ft and length L=10 ft in the di
    8·1 answer
  • Using the celsius_to_kelvin function as a guide, create a new function, changing the name to kelvin_to_celsius, and modifying th
    5·1 answer
  • To reduce the drag coefficient and thus improve the fuel efficiency of cars,the design of side rearview mirrors has changed dram
    11·1 answer
  • What's the third pedal for in a vehicle​
    12·1 answer
  • Consider two different versions of algorithm for finding gcd of two numbers (as given below), Estimate how many times faster it
    9·1 answer
  • Under conditions for which the same roojm temperature is mainteined bt a heating or cooling system, it is not uncommon for a per
    10·1 answer
  • Can someone Please help me..? If I'm your Onii-San then answer. And get brainliest. Make sure to explain why..
    15·1 answer
  • Which one of the following activities is not exempt from licensure pursuant to Chapter 471, F.S.? A person practicing engineerin
    5·1 answer
  • The velocity profile for a thin film of a Newtonian fluid that is confined between the plate and a fixed surface is defined by u
    14·1 answer
  • Concerning the storage battery, what category of the primary sources is voltage produced?​
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!