From searching around it seems you have answered this for others as well.
What will be the output of the below program? List what will be outputed to the screen and explain your answer.
num SIZE = 10
num numbers[SIZE] = 0,0,0,0,0,0,0,0,0,0
index = 0
while index < SIZE
numbers[index]= index * 10
index = index + 1
output “The Output is: ”
while index > 0
index = index – 1
What is the screen output of the following code segment? Explain the reasoning behind your answer.
Test1 = 70 Test2 = 80 Test3 = 84NumberOfTests = 3 Average = (Test1 + Test2 + Test3) / NumberOfTests
IF Average >= 90 THEN
Output “Great job”
Output “Your average is: ”, Average
IF Average >= 80 or Average <=89 THEN
Output “Nice work”
Output “Your average is: “, Average
Output : “Your Average is:”, Average
Output “, You will do better next time!”
This evening at midnight. Possible?