Final answer:
This program allows users to store and modify roster and rating information for a soccer team.
Step-by-step explanation:
This program is designed to store roster and rating information for a soccer team. The user will be prompted to input five pairs of numbers: a player's jersey number (ranging from 0 to 99) and the player's rating (ranging from 1 to 9). These numbers will be stored in two separate int arrays. To output the roster, the program will simply display the jersey numbers and ratings in the arrays.
The program also implements a menu of options for the user to modify the roster. The menu includes options to update player ratings, output players above a certain rating, replace players, and output the roster. The program will continue to display the menu until the user chooses the option to quit.
For example, if the user selects the 'Update player rating' option, the program will prompt the user for a player's jersey number, prompt again for a new rating for the player, and then update that player's rating. Similarly, if the user selects the 'Output players above a rating' option, the program will prompt the user for a rating and then print the jersey number and rating for all players with ratings above the entered value.