Design a While loop that lets the user enter a number. The number should be multiplied by 10, and the result stored in a variable named product. The loop should iterate as long as product contains a value less than 100.
Design a For loop that calculates the total of the following series of numbers:
1 + 2 + 3 + …..30
30 29 28 1
Convert the While loop in the following code to a Do-While loop:
Declare Integer x = 1
While x > 0
Display “Enter a number.”
Input x
End While
Centigrade to Fahrenheit Table
Design a program that displays a table of the centigrade temperatures 0 through 20 and their Fahrenheit equivalents. The formula for converting a temperature from centigrade to Fahrenheit is
F=9 C + 32
5
Largest and Smallest
Design a program with a loop that lets the user enter a series of numbers. The user should enter-99 to signal the end of the series. After all the numbers have been entered, the program should display the largest and smallest numbers entered.
Write a pseudocode statement that generates a random number in the range of 1 through 100 and assigns it to a variable named rand.
Design a function named timesTen that accepts and Integer argument. When the function is called, it should return the value of its argument multiplied times 10.
Kinetic Energy
In physics, an object that is in motion is said to have kinetic energy. The following formula can be used to determine a moving object’s kinetic energy:
KE = 1/2mv2
The variables in the formula are as follows: KE is the kinetic energy, m is the object’s mass in kilograms, and v is the object’s velocity, in meters per second.
Design a function named kineticEnergy that…





