Question
Write a C++ program using Doubly Linked List to record and retrieve scores of Gulf Tournament players. The name and scores of the players will
Write a C++ program using Doubly Linked List to record and retrieve scores of Gulf Tournament players. The name and scores of the players will be entered as the player finishes. Your program should be able to achieve the following functions, 1. Insert the data (name,and scores) for number of players (based on user input) and accordingly create a Doubly Linked List. 2. Scores and names can be printed in order by ascending or by descending scores. 3. Given a score, all players with the same score can be printed. 4. Create a function named displayPlayer() based on following conditions: • Option 1 (individual): User will enter Player Name as input and function will display the player details. • Option 2: Function will display all players’ details in record. You need to ask user to select from the following menu 1. Insert a New player 2. Print players with same score: insert a score: 3. Print players’ scores assending (A) or desending (D): 4. displayPlayer() individual (I) or All (A):
Step by Step Solution
3.63 Rating (146 Votes )
There are 3 Steps involved in it
Step: 1
include using namespace std include include A linked list node struct Node int score string name str...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started