Question: Create a chess ratings tracker using Maps and pass by reference / pointer in C + + that has two parts: Continuously prompt the user

Create a chess ratings tracker using Maps and pass by reference/pointer in C++ that has two parts:
Continuouslyprompt the user to inputplayer's names and ratings. The names and ratings should be stored in an appropriate associative container. For example:
Enter name (q to quit): Zack
Enter rating: 1250
Enter name (q to quit): q
After all of the players have been entered, continuously ask the user for a players name and respond with the players rating or "Unknown Player" if the player does not exist.
Find player (q to quit): Zack
Zack has a rating of 1250
Find player (q to quit): Joe
Unknown Player
Find player (q to quit): q
Bye
Looking for name/date/e-mail and an overview comment at the top along with program comments and testing. Your program should use pass by reference/pointer for user input. Your program should also guard against chess ratings above 3000 and below 100. Also remember to include testing at the end of your program.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!