Question: Please do in C++ 7. Write a program that declares a struct to store the data of a baseball player (player's name, number of home
7. Write a program that declares a struct to store the data of a baseball player (player's 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 and a function to output data. Add functions to search the array to find the index of a specific player, and update the data of a player. (You may assume 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 various choices. user
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
