Question: Write a program that declares a struct to store the data of a baseball player Players name Number of home runs, and Number of hits
Write a program that declares a struct to store the data of a baseball player
Players name
Number of home runs, and
Number of hits
Declare an array of 10 components to store the data of 10 baseball players.
Your program must contain a function to input data from a file
Your program must contain a function to output data to a different file.
Add function a to search the array to find the index of a specific player.
Add function a to update the data of a player using the search function. (Note: 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. (Be creative!)
Menu Example:
Your program should give the user the following options:
1: To print a player's data
2: To print the entire data
3: To update a player's touch downs
4: To update a player's number of catches
5: To update a player's passing yards
6: To update a player's receiving yards
7: To update a player's rushing yards
99: To quit the program
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
