Exercise - Create a Top 5 leaderboard

Completed

In this exercise, you build a simple arcade-style scoring program. As each round is played, the score gets logged to a resizable List<int>. Once every round is finished, you copy the five highest scores into a fixed-size int[] array that always holds exactly five ranks. You practice using List<T> methods like Add, Count, Sort, and Reverse, along with array indexing and Length, and you see firsthand why a leaderboard's Top 5 is a great fit for an array while the running score log is a great fit for a list.

Launch the exercise and follow the instructions.

Screenshot of the button that launches the create a leaderboard exercise in a new browser tab.