In recording scores for a golf tournament, we enter the name and score of the player as the player finishes. This information is to be retrieved in each of the following ways: Scores and names can be printed in order by ascending or by descending scores. Given the name of a player, other players with the same score can be printed. For that, we have to design a structure that keeps the information in a way that each player has information of the player next to it and the one behind it as well. Implement the above scenario using a doubly-linked list of data structure and also classes and encapsulation method in C++ Programming. Your Application should do the following: Add new Player ( it should insert values in sorted order) Delete a player ( user enters the name of a player to be deleted) Display: Whole list (all players with their scores) Display player with lowest scores in the list. Display all those players having the same score entered by the user. Display Backward From a player ( it should print data of all the players behind a player)
In recording scores for a golf tournament, we enter the name and score of the player as the player finishes. This information is to be retrieved in each of the following ways:
Scores and names can be printed in order by ascending or by descending scores.
Given the name of a player, other players with the same score can be printed.
For that, we have to design a structure that keeps the information in a way that each player has information of the player next to it and the one behind it as well.
Implement the above scenario using a doubly-linked list of data structure and also classes and encapsulation method in C++
Your Application should do the following:
Add new Player ( it should insert values in sorted order)
Delete a player ( user enters the name of a player to be deleted)
Display:
Whole list (all players with their scores)
Display player with lowest scores in the list.
Display all those players having the same score entered by the user.
Display Backward From a player ( it should print data of all the players behind a player)
Trending now
This is a popular solution!
Step by step
Solved in 2 steps