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

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter8: I/o Streams And Data Files
Section: Chapter Questions
Problem 8PP: (Data processing) A bank’s customer records are to be stored in a file and read into a set of arrays...
icon
Related questions
Question
  1. 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. 
  2. 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

  1. An array of the structure with 30 components is declared to store the data of football players.
  2. A function is provided to open the input file.
  3. A function skeleton is provided to read the data in the file “footballdata.txt” into the structure array.
  4. An Integer function is provided to search the structure array to find the index of a specific player.
  5. 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.
  6. A function has been provided to print all data for all players.
  7. 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. 
  8. 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.
  9. All files are closed prior to program end.
  10. A menu is provided to select one of the following options:
  11. Print a player's data
  12. Print all the data
  13. Update a player's touch downs
  14. Update a player's number of catches
  15. Update a player's passing yards
  16. Update a player's receiving yards
  17. Update a player's rushing yards
  18. Quit
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 1 images

Blurred answer
Knowledge Booster
Graphical User Interface
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.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr