In C++
Create a program that uses Selection Sort andInsertion Sort for the National Football League list of currentplayers. It's going to be a big list(over 1000 names). Pleaseidentify, in comments, which part of the code is for the SelectionSort and which part of the code is for Insertion Sort. Itmust have both.
Inputting data from a text file named \"Players.txt\"
Only want the name of the player(first name then last name),their team name, and position they play.
Example is:
Name | Team | Position |
Patrick Mahomes | Chiefs | Quarterback |
Julio Jones | Falcons | Wide Receiver |
Fletcher Cox | Eagles | Defensive Tackle |
Structure of the input file is:
Patrick Mahomes, Chiefs, Quarterback
Julio Jones, Falcons, Wide Receiver
Fletcher Cox, Eagles, Defensive Tackle
Output both lists separately(please indicate which lists goeswith which sorting method) to a text file along with how long ittook to go through the Selection Sort and Insertion Sort and howmany iterations it took for each.
Thanks.
If you can't do this then can you please let someone else.