Question: This is all part of 1 question, code needs to be done in C++ thank you. 7. Write a program that declares a struct to

 This is all part of 1 question, code needs to be

done in C++ thank you. 7. Write a program that declares a

struct to store the data of a football player (player's name, player's

position, number of touchdowns, number of catches, number of passing yards, number

This is all part of 1 question, code needs to be done in C++ thank you.

7. Write a program that declares a struct to store the data of a football player (player's 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 10 components to store the data of 10 football players. Your program must contain a function to input data and a function to output data. Add functions to search the array to find the index of a specific player, and update the data of a player. (You may assume that input data is stored in a file.) Before the program terminates, give the user the option to save data in a file. Your program should be menu driven, giving the user various choices.| idhere to the programming standards that I've covered (no global arrays, input validation, etc.) Menu: Assignment: A5 Structs Look Up a Player 2 Edit a Player Print Team Roster To Quit Choice (1-4): Treate the following functions: - editPlayer: is a void fn, which takes an array of playerType and calls lookUpPlayer which returns the index of the target (-1 if not found). If found allows the user to edit any of the data members of the player via a menu system. * Assignment: A5 Structs * 1 Look Up a Player 3 Print Team Roster * Choice (1-4): Search: Alex - printPlayer is a void fn, that that takes a playerType variable by value and prints a single players' record. - printTeam, is a void fn, takes the entire array and calls printPlayer for each record. - readFile, is a void fn which populates the array from a file "input.txt" make it local - writeFile, is a void fn which saves the database to "output.txt" Submission requirements: 1. call lookUpPlayer and find Alexander, D.J (take screenshot \#1) 2. edit Alexander, D.J number of touchdowns to 5 (take screenshot of the menu \#2) 3. printTeam, (take screenshot \#3)

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!