Question: Beginning C++ Create a project called Leaderboard , which uses a two dimensional array or parallel arrays to store player initials and scores. It should
Beginning C++
Create a project called Leaderboard, which uses a two dimensional array or parallel arrays to store player initials and scores. It should have at least four functions to do the following:
The first function has two options allowing you to customize the difficulty of the exercise to your own ability and experience. When in doubt, start with easy mode. You can then later add functionality to create a hard mode solution if you have time. Students familiar with simple sorting algorithms may want to just start in hard mode.
addScore: Adds a score to the Leaderboard if the score is high enough along with the three letter initials of the player to whom the score belongs. Remember you must keep the correct scores associated with the correct initials.
Easy Mode: All scores are added and not sorted.
Hard Mode: Only maintain the top ten scores and sort.
store: Writes the current values in the Leaderboard to a file on the disk. The format of your file is up to you, just remember you have to retrieve these values later and and keep them straight, so design your file format to make life easier for the next method.
load: Retrieves the stored file and loads values into the Leaderboard. Be sure to keep those initials and scores straight.
display: Displays the Leaderboard on the screen for viewing. You can format this any way you like.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
