8.14 LAB*: Program: Soccer team roster
This program will store roster and rating information for asoccer team. Coaches rate players during tryouts to ensure abalanced team.
(1) Prompt the user to input five pairs of numbers: A player'sjersey number (0 - 99) and the player's rating (1 - 9). Store thejersey numbers in one int array and the ratings in another intarray. Output these arrays (i.e., output the roster). (3pts) Ex:
(2) Implement a menu of options for a user to modify the roster.Each option is represented by a single character. The programinitially outputs the menu, and outputs the menu after a userchooses an option. The program ends when the user chooses theoption to Quit. For this step, the other options do nothing. (2pt) Ex:
(3) Implement the "Output roster" menu option. (1pt) Ex:
(4) Implement the "Update player rating" menu option. Prompt theuser for a player's jersey number. Prompt again for a new ratingfor the player, and then change that player's rating. (1pt) Ex:
(5) Implement the "Output players above a rating" menu option.Prompt the user for a rating. Print the jersey number and ratingfor all players with ratings above the entered value. (2pts) Ex:
(6) Implement the "Replace player" menu option. Prompt the userfor the jersey number of the player to replace. If the player is inthe roster, then prompt again for a new jersey number and rating.Update the replaced player's jersey number and rating. (2pts) Ex:
8.14 LAB*: Program: Soccer team roster This program will store roster and rating information for a soccer team. Coaches
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am