TQST Drivq

The program should now store all of the information from the file into the scores array before displaying just the top three scores. Let's run the program within IDLE and see what happens:

TV* ¿ode yrcd^s results, wWitVi flash o, the stoveboard

Surf-A-Thon

8.65

Crap. The program is printing out the 3 scores all right, but it's not printing out the top 3 scores in order, and there's confusion about who won.

Which important step did the program forget to perform?

sort the array

Was this article helpful?

0 0

Post a comment