Question: Write a Scoreboard class that maintains the top 10 scores for a game application using a singly linked list. The data should store the Name

Write a Scoreboard class that maintains the top 10 scores for a game application using a singly linked list.  The data should store the Name and Score. 

Prompt the user for name and score, then place the data and score in the appropriate place in the list.

Scores should be stored and printed from High Score to Low Score.

Use an independent variable to keep the size of the list.  You will not need more than 10 scores.

I may need to delete a score if I found a player cheated.  

Make sure your application lets me (and this can be a menu)

Add a new player score/node, Delete a player/score node, print the list.

Step by Step Solution

3.50 Rating (150 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Code class Node def initself name score selfname name selfscore score selfnext None class Scoreboard ... View full answer

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 Programming Questions!