Question: Programming Assignment #3 DUE Monday, November 27h @11:59pm (Submit your solution to Blackboard as .h cpp, .txt, etc.) Write a program that reads a file
Programming Assignment #3 DUE Monday, November 27h @11:59pm (Submit your solution to Blackboard as .h cpp, .txt, etc.) Write a program that reads a file named team.txt into a C++ program. Each team listed in team.txt should be treated as a node that needs to be inserted into a linked-list. Each team should possess the following values: team name, wins, losses, and win percentage. The data listed in a team.txt are game scores (see next page for example file). After the game scores data is read into the program, your C++ program must be able to tally the number of wins, losses, and win percentages for each team, respectively. These three values along with the team name should then be inserted into a linked list and displayed onto the screen in descending order (meaning the team with the best record is listed first, and so on). In addition to the basic linked-list operations of appending, inserting, deleting, and traversing. Your program should also possess a special operation function called displayWinningTeams0), which is able to display all of the teams whose win percentages are above .500. If written correctly, your program should generate an output similar to one seen below: When displayList() is called: When displayWinningTeams() is called CONF NC-A&T 6-0 Teams with winning records: NC-A&T 6-0 1.000 1.000 Boward 0.889 8-1 0.889 6-2 0.750 NC-Central
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
