Question: What is wrong with the following code? #Declare Variables Declare NumItems as integer Declare Test as float Declare Sum as float Set NumItems = 5

What is wrong with the following code?

#Declare Variables Declare NumItems as integer Declare Test as float Declare Sum as float Set NumItems = 5 Do While NumItems < 10  print("Enter in the next test score: ")  input Test  Sum = Sum + Test Loop 
Sum would not calculate correctly
The count should start at -1
The loop will never stop.
This should be a For Next Loop.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!