Question: You will write a program that processes the results from an esports tournament. Read the username and score from scores.txt (a sample will be provided

You will write a program that processes the results from an esports tournament. Read the username and score from scores.txt (a sample will be provided in the starter code). As you read data from the file, you should be keeping track of the top 3 players. Display the average score and the gold, silver, and bronze medal winners at the end of the program.

Sample Output

IvyGames Tournament Results: ----------------------------------- | Username | Score | ----------------------------------- | Avoideo | 82 | ----------------------------------- | Beckman | 48 | ----------------------------------- | Burntis | 77 | ----------------------------------- | ChattyEver | 80 | ----------------------------------- | Corremm | 68 | ----------------------------------- | CyberWanna | 77 | ----------------------------------- | Earga | 47 | ----------------------------------- | FlamesAngels | 71 | ----------------------------------- | GoldenDay | 50 | ----------------------------------- | Gurlynx | 94 | ----------------------------------- | HempFrog | 72 | ----------------------------------- | Inlovera | 72 | ----------------------------------- | Jeansco | 45 | ----------------------------------- | KatCasual | 53 | ----------------------------------- | LadyLeon | 61 | ----------------------------------- | LaoJung | 49 | ----------------------------------- | MagicLuda | 43 | ----------------------------------- | Merozym | 95 | ----------------------------------- | Myherook | 51 | ----------------------------------- | Niprt | 100 | ----------------------------------- | Pantec | 91 | ----------------------------------- | Planette | 49 | ----------------------------------- | PrepInca | 52 | ----------------------------------- | QuoteBuddie | 45 | ----------------------------------- | Screest | 51 | ----------------------------------- | Sheerto | 48 | ----------------------------------- | Venueri | 69 | ----------------------------------- | WaterDas | 60 | ----------------------------------- | WeblogGood | 88 | ----------------------------------- | Wireen | 43 | ----------------------------------- The gold medal winner is Niprt with 100 points. The silver medal winner is Merozym with 95 points. The bronze medal winner is Gurlynx with 94 points. Congratulations to the winners! See you at the next tournament.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related General Management Questions!