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...




  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

Jun 07, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here