Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Intelligent Databases Technologies And Applications

Authors: Zongmin Ma

1st Edition

1599041219, 978-1599041216

More Books

Students also viewed these Databases questions

Question

What do Dimensions represent in OLAP Cubes?

Answered: 1 week ago