Question: The numbers - 3 , 5 , 2 , 7 , - 6 , - 1 , 3 , . . . are in a

The numbers -3,5,2,7,-6,-1,3,... are in a file to be read in order from left to right and processed by the pseudocode shown below:
Set I =1 and Y =0
While I <=3
Read the next value from the file and set X equal to that value
If X <0 to to 1
else Y = Y + X*X
1 increment I by 1
EndWhile
Z = Y/I
The number after the pseudocode is executed is most nearly:

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!