Question: Part A 10 points Write a short program designed to accept up the game statistics for up to 12 basketball players (the user may enter

Part A 10 points Write a short program designed to accept up the game statistics for up to 12 basketball players (the user may enter less if he or she wishes, but not more than 12). The program should ask a user for the following data for each player entered: Name Position Starter (Yes or No) Number of Rebounds Number of Points Scored Number of Steals Number of Blocks Number of Assists Create a structure that that represents the above data, named PlayerRecord. After collecting the information from the user, store the records in as file named playerrecords.txt. Part B 10 points Write a separate program designed to read records from the file created in Part A. Display each record read to the user in the following format: Player Name: a Player Position: b This player is/is not a starter. Stat Line: c points - d assists - e rebounds - f steals - g blocks - Replace a, b, c, d, e, f & g with the correct data from the file. Replace is/is not with the correct selection according to the information stored on file. (Hint: Remember that this program does not known beforehand the number of records which are stored in the file, so you will have to check for when you have reached the end of the file).

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!