in C++, use vector library This program will store roster and rating information for a soccer team. Coaches rate players
Posted: Tue Jul 05, 2022 10:26 am
in C++, use vectorlibrary
This program willstore roster and rating information for a soccer team. Coaches rateplayers during tryouts to ensure a balanced team.
(1) Prompt the user toinput five pairs of numbers: A player's jersey number (0 - 99) andthe player's rating (1 - 9). Store the jersey numbers in one intvector and the ratings in another int vector. Output these vectors(i.e., output the roster). (3 pts)Ex:
(2) Implement a menuof options for a user to modify the roster. Each option isrepresented by a single character. The program initially outputsthe menu, and outputs the menu after a user chooses an option. Theprogram ends when the user chooses the option to Quit. For thisstep, the other options do nothing. (2 pts)Ex:
(3) Implement the"Output roster" menu option. (1 pt)Ex:
(4) Implement the "Addplayer" menu option. Prompt the user for a new player's jerseynumber and rating. Append the values to the two vectors. (1pt)Ex:
(5) Implement the"Delete player" menu option. Prompt the user for a player's jerseynumber. Remove the player from the roster (delete the jersey numberand rating). (2 pts)Ex:
(6) Implement the"Update player rating" menu option. Prompt the user for a player'sjersey number. Prompt again for a new rating for the player, andthen change that player's rating. (1 pt)Ex:
(7) Implement the"Output players above a rating" menu option. Prompt the user for arating. Print the jersey number and rating for all players withratings above the entered value. (2 pts)Ex:
This program willstore roster and rating information for a soccer team. Coaches rateplayers during tryouts to ensure a balanced team.
(1) Prompt the user toinput five pairs of numbers: A player's jersey number (0 - 99) andthe player's rating (1 - 9). Store the jersey numbers in one intvector and the ratings in another int vector. Output these vectors(i.e., output the roster). (3 pts)Ex:
(2) Implement a menuof options for a user to modify the roster. Each option isrepresented by a single character. The program initially outputsthe menu, and outputs the menu after a user chooses an option. Theprogram ends when the user chooses the option to Quit. For thisstep, the other options do nothing. (2 pts)Ex:
(3) Implement the"Output roster" menu option. (1 pt)Ex:
(4) Implement the "Addplayer" menu option. Prompt the user for a new player's jerseynumber and rating. Append the values to the two vectors. (1pt)Ex:
(5) Implement the"Delete player" menu option. Prompt the user for a player's jerseynumber. Remove the player from the roster (delete the jersey numberand rating). (2 pts)Ex:
(6) Implement the"Update player rating" menu option. Prompt the user for a player'sjersey number. Prompt again for a new rating for the player, andthen change that player's rating. (1 pt)Ex:
(7) Implement the"Output players above a rating" menu option. Prompt the user for arating. Print the jersey number and rating for all players withratings above the entered value. (2 pts)Ex: