Question: In C++ please and it is a structure program using an array It's nearing playoff season in football time to keep track of some statistics

 In C++ please and it is a structure program using an
array It's nearing playoff season in football time to keep track of
some statistics for everyone's favorite team, the Packers! Specifications: Write a program
that declares a struct called footBallPlayerType to store the data of a
football player (player's last name, player's position, number of touchdowns, number of
In C++ please and it is a structure program using an array

It's nearing playoff season in football time to keep track of some statistics for everyone's favorite team, the Packers! Specifications: Write a program that declares a struct called footBallPlayerType to store the data of a football player (player's last name, player's position, number of touchdowns, number of catches, number of passing yards, number of receiving yards, and the number of rushing yards). Declare an array of structures to store the data of 10 football players. nput data from a file and output data to a file. The input and Your program must contain functions to i output files are called "PackersInput.txt" and "PackersOutput.txt", respectively. A copy of the input file can be found on the website. Add functions to print menu options, print all of the team data, print a single player's data, search the array to find the index of a specific player, update the data of a player based on the number of touchdowns, catches, etc. Before the program terminates, give the user the option to save the data. Assuming N is a constant, use the following function prototypes: / Display the menu void showMenuO // Get team data from the input file void getData (ifstream &inputFile, footBallPlayerType list IN]) // Save current team data to output file void saveData (ofstream outputFile, footBallPlayer Type list [N]) // Print entire team data to the screen void printData (footBallPlayerType list [N]) // Print a single player's data to the screen void printPlayerData(footBallPlayerType listIN],int playerNum) i // Search the data for a player int searchData (footBal1PlayerType listIN, string n) // Update the number of touchdowns for a player void updateTouchDowns (footBallPlayerType list [N), int tDowns, int playerNum)i /1 Update the number of catches for a player

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!