Question: Exercise 1 0 . 3 Consider the following struct: typedef struct { char initial 1 ; char intial 2 ; char intial 3 ; int

Exercise 10.3 Consider the following struct: typedef struct { char initial1; char intial 2; char intial3; int score; } HighScoreEntry; Write a program that crates an array of 10 highs score structs and write them to a binary file called scores.dat. Write the first operation of this program is to open the scores file and load the values in an array of HighScore structs. Next the program that display a menu to the user to 1)display scores 2) updates score 3)quit. Display scores print the struct data values in the array. Update score allows the user update any score in the array by giving the index and the new struct values. Quit will rewrite the file to reflect the changes in the array. Use a loop allow the user to run the menu as often as they like. Quit the
progam and rerun it, your score changes should persist.

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!