Question: What is the error in the following pseudocode? // This program displays the highest value in the array. Declare Integer SIZE = 3 Declare Integer
What is the error in the following pseudocode? // This program displays the highest value in the array.
Declare Integer SIZE = 3
Declare Integer values [SIZE] = 1,3,4
Declare Integer index
Declare Integer highest
For index = 0 To SIZE - 1
If values [index] > highest Then
Set highest = values [index]
End If
End For
Display "The highest number is", highest
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
