Question: write a program in C + + that will process a data set of information for the 2 0 2 3 - 2 0 2
write a program in C that will process a data set of information for the season of the Chicago Blackhawks. The information in the file will be needed for later processing, so it will be stored in a set of arrays that will be displayed, sorted, and displayed again For the assignment, use six arrays, each of which will hold a maximum of elements: one array of strings to hold the name of each of the players one array of characters to hold the position played by each of the players one array of integers to hold the number of games played for each of the players one array of integers to hold the number of goals scored for each of the players one array of integers to hold the number of assists for each of the players one array of integers to hold the plusminus rating for each of the players The six arrays will be parallel arrays. This means that the information for one player can be found in the same "spot" in each array. This also means that any time information is moved in one array the same move must be made to the other arrays in order to maintain data integrity. Declare the six arrays and an integer variable to hold the number of players. If any other variables are needed, declare them as well. Fill the six arrays by calling the build function. The function returns the number of players that it put into an array. This returned value should be saved in the integer variable that holds the number of players. Display the number of players that played for the Blackhawks during the season. Display the six arrays by calling the print function. Make sure to pass a title similar to "Chicago Blackhawks Player Stats Unsorted", the six arrays, and the number of players the integer value returned from the build call Sort the arrays by calling the sort function. Make sure to pass the six arrays and the number of players. Finally, display the six arrays a second time by calling the print function a second time. This time use a title similar to "Chicago Blackhawks Player Stats Sorted".
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
