in C++, use vector library This program will store roster and rating information for a soccer team. Coaches rate players

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

in C++, use vector library This program will store roster and rating information for a soccer team. Coaches rate players

Post by answerhappygod »

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:
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply