COMPUTER PROGRAMMING FUNDAMENTALS
WHAT IS PROGRAMMING
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
Consider the following pseudocode:Generate a random number between 1 and 10 and store it as firstNumber. Generate a random number between 1 and 10 and store it as secondNumber. Multiply the firstNumber by secondNumber and store it as Result. Ask “What is firstNumber * secondNumber?” Display answer box and wait 5 seconds. If answer is equal to ____ say “Good job! Let’s try another.” Wait 2 seconds. Then return to step one. else say “Incorrect. Let’s try another.” Wait 2 seconds. Then return to step one.Repeat 10 times. If firstNumber is 8 and secondNumber is 10, what code should be inserted into the blank area?
|
firstNumber and secondNumber
|
|
Result
|
|
80
|
|
8 * 10
|
Explanation:
There is 1 question to complete.