Alternatively, a record structure could be used. This would allow the data for each city to be scored together, rather than in four different arrays. A record type to store information on each ...
And so on, up to score10. While possible, this is not a practical method of recording this data. Suppose the program needed to record 100 scores? 100 variables would be required!
The design, implementation, and analysis of abstract data types, data structures and their algorithms. Topics include: data and procedural abstraction, amortized data structures, trees and search ...