Programming Questions? Ask a Programmer for Answers ASAP
the book question is as stated exactly how written in the first question.
how much is the bonus total cost for all 10 questions.
this is the answer to the first question then:declare integer product declare integer numberproduct = 0do while product < 100 display "Enter a number" input number product = number * 10 loop
You can post your questions + i'll get started on them.
Design a For loop that calculates the total of the following series of numbers:
1/30 + 2/29 + 3/28 + ... 30/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"
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= --- C+32
Where F is the Fahrenheit temperature and C is the Centigrade temperature. Your program must use a loop to display the table.
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 a series. After all the numbers have been entered, the program should display the largest and smallest numbers entered.
Design a function named timesTen that accepts an Integer argument. When the function is called, it should return the value of its argument multiplied times 10.
Design a function named getFirstName that ask the user to enter his or her first name, and returns it.
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/2mv^2
The variables in the formula are as follows: KE is the kinetic energy, m is the objects mass in kilograms, and v is the object's velocity, in meters per second.
Design a function named kineticEnergy that accepts an object's mass (in kilograms) and velocity (in meter per second) as arguments. The function should return the amount of kinetic energy that the object has. Design a program that ask the user to enter values for mass and velocity, and then calls the kineticEnergy function to get the object's kinetic energy.
Design a program that lets the user play the game of Rock, Paper, Scissors against the computer. The program should work as follows.
(1) When the program begins, a random number in the range of 1 through 3 is generated. If the number is ***** then the computer has chosen rock. If the number is ***** then the computer has chosen paper. If the number is ***** then the computer has chosen scissors. (Don't display the computer's choice yet.)
(2) The user enters his or her choice of "rock," "paper," or "scissors" at the keyboard.
(3) The computer's choice is displayed.
(4) The program should display a message indicating whether the user or the computer was the winner. A winner is selected according to the following rules:
In the subject line of your question type "for .Paul"thanks again