Question: My C + + Prompt is: This program will store roster and rating information for a soccer team. Coaches rate players during tryouts to ensure
My C Prompt is:
This program will store roster and rating information for a soccer team. Coaches rate players during tryouts to ensure a balanced team. Coaches can add players to the roster, delete players from the roster, and change the rating of a player.
Your program will be a menudriven, multiple function app. The coach can do multiple operations during a single execution of the app.
Each menu option is represented by a single character and a separate function. The menu appears again after any of the options besides quit is chosen and executes.
For this part implement only the quit option. So your program will start, create an empty vector object for the roster, display the menu, and end the program when the user enters quit. pts
Ex:
MENU
a Add player
d Remove player
u Update player rating
o Output roster
q Quit
Choose an option:
q
Now implement the "Add player" menu option in a new function. Prompt the user for the new player's first name, last name, jersey number to and rating to Don't worry about error checking. Append the new player to roster vector. pt
Ex:
Enter the new player's data
first name:
JimmyJohn
last name:
Chang
jersey number:
rating:
Now Implement the "Output roster" menu option to give this format: pt
Ex:
ROSTER
Player Tom Charles, jersey number rating
Player Lauren Foucault, jersey number rating
Implement the "Update player rating" menu option in a new function. Prompt the user for a player's jersey number. Prompt again for a new rating for the player, and then change that player's rating. The app gives no status message. You can use the display roster option to see if the change was successful. pt
Ex:
Enter a jersey number:
Enter a new rating for player:
Now implement the "Delete player" menu option in a new function. Prompt the user for a player's jersey number. Remove the player from the roster. The app gives no status message. You can use the display roster option to see if the delete was successful.
This one is harder than it reads. Use the at and popback vector class member functions to move every vector item after the item to delete up one position, and then get rid of the last item. pts
Ex:
Enter a jersey number:
My Code is attached, I am getting an infinite loop at this point, I cannot use do switch, cin.clear, or break in the code.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
