The text file HighScoreTable.txt stores the top seven player scores for a game. The data in the file is stored in the order: Player ID Game level Score Each item of data is stored on a new line. For example, the first set of data in the file is: Player ID: GHEH Game level: 3 Score: 10 The scores in HighScoreTable.txt are not in order. The player scores are first sorted by the game level they reached. For example, all players that reached level 5 are higher in the high score table than players that reached level 4. The players that reached the same level are then sorted in descending order of score. An example sorted high score table is: The function SortScores () uses a bubble sort to sort the data as described and returns the sorted array. Write program code for SortScores(). Save your program. Copy and paste the program code into part 3(d) in the evidence document.
Exam No:9618_w24_qp_42 Year:2024 Question No:3(d)
Answer:




Knowledge points:
19.1 Algorithms
20.1 Programming Paradigms
Solution:
Download APP for more features
1. Tons of answers.
2. Smarter Al tools enhance your learning journey.
IOS
Download
Download
Android
Download
Download
Google Play
Download
Download