Complete C++ the program provided to read football statistics into a structure array, offers a menu to update statistics, print data, and update a file. The program declares a struct to store the data of a football player and has the following data members. The structure in the header file provided: Name Position Number of Touchdowns Number of Catches Number of Passing Yards Number of Receiving Yards Number of Rushing Yards An array of the structure with 30 components is declared to store the data of football players. A function is provided to open the input file. A function skeleton is provided to read the data in the file “footballdata.txt” into the structure array. An Integer function is provided to search the structure array to find the index of a specific player. A function has been provided to using the index returned from the search, print all information for a player using the index returned from the search. A function has been provided to print all data for all players. A menu is provided to allow the user to update the data for a player, print player data or print all the data. The menu may be in main. The program loops until the user selects 99. Before the program terminates, a selection to give the user the option to save data in a file, name of your choice, is provided. The user enters the file name. A function to open the output file and check the status has been provided. If the file does not open, a message is displayed to the user that the data will not be written to the file and skip the output to the file. Do NOT overwrite the input file. All files are closed prior to program end. A menu is provided to select one of the following options: Print a player's data Print all the data Update a player's touch downs Update a player's number of catches Update a player's passing yards Update a player's receiving yards Update a player's rushing yards Quit
Complete C++ the program provided to read football statistics into a structure array, offers a menu to update statistics, print data, and update a file. The program declares a struct to store the data of a football player and has the following data members. The structure in the header file provided: Name Position Number of Touchdowns Number of Catches Number of Passing Yards Number of Receiving Yards Number of Rushing Yards An array of the structure with 30 components is declared to store the data of football players. A function is provided to open the input file. A function skeleton is provided to read the data in the file “footballdata.txt” into the structure array. An Integer function is provided to search the structure array to find the index of a specific player. A function has been provided to using the index returned from the search, print all information for a player using the index returned from the search. A function has been provided to print all data for all players. A menu is provided to allow the user to update the data for a player, print player data or print all the data. The menu may be in main. The program loops until the user selects 99. Before the program terminates, a selection to give the user the option to save data in a file, name of your choice, is provided. The user enters the file name. A function to open the output file and check the status has been provided. If the file does not open, a message is displayed to the user that the data will not be written to the file and skip the output to the file. Do NOT overwrite the input file. All files are closed prior to program end. A menu is provided to select one of the following options: Print a player's data Print all the data Update a player's touch downs Update a player's number of catches Update a player's passing yards Update a player's receiving yards Update a player's rushing yards Quit
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Related questions
Question
- Complete C++ the program provided to read football statistics into a structure array, offers a menu to update statistics, print data, and update a file.
- The program declares a struct to store the data of a football player and has the following data members. The structure in the header file provided:
Name
Position
Number of Touchdowns
Number of Catches
Number of Passing Yards
Number of Receiving Yards
Number of Rushing Yards
- An array of the structure with 30 components is declared to store the data of football players.
- A function is provided to open the input file.
- A function skeleton is provided to read the data in the file “footballdata.txt” into the structure array.
- An Integer function is provided to search the structure array to find the index of a specific player.
- A function has been provided to using the index returned from the search, print all information for a player using the index returned from the search.
- A function has been provided to print all data for all players.
- A menu is provided to allow the user to update the data for a player, print player data or print all the data. The menu may be in main. The program loops until the user selects 99.
- Before the program terminates, a selection to give the user the option to save data in a file, name of your choice, is provided. The user enters the file name. A function to open the output file and check the status has been provided. If the file does not open, a message is displayed to the user that the data will not be written to the file and skip the output to the file. Do NOT overwrite the input file.
- All files are closed prior to program end.
- A menu is provided to select one of the following options:
- Print a player's data
- Print all the data
- Update a player's touch downs
- Update a player's number of catches
- Update a player's passing yards
- Update a player's receiving yards
- Update a player's rushing yards
- Quit
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 1 images

Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you

Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON

Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON

C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON

Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning

Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education