Declare Array names[100], highestName, response As string
Array averages[100], highestAvg As real x As integer highestAvg<--0 x<--0 Repeat Print "Enter 1 to enter a name and average" Print "Enter 2 to stop and output the results" Read response IF response=1 Then x<--x+1 Print "Enter the name of the student" Read names[x] Print "Enter the avaerage of the student" Read averages[x] IF averages[x]>highestAvg Then highestAvg<-- averages[x] highestName<-- names[x] Endif Endif Until response=2 Print "The name of the student with the highest average is ",highestName," with an average of ",highestAvg,"." End.