Question: A coach uses 2 parallel arrays (or Lists) to keep track of her players. One is used to store a players name and the other
A coach uses 2 parallel arrays (or Lists) to keep track of her players. One is used to store a players name and the other stores his/her best record. Write a program to create these two arrays (or lists) that are originally empty, and do the following using a menu:
1. Add a new player and his/her best record.
2. Print the name and record of all current players, one player per line, as such:
Name Best Record
Alice 34.9
Bryan 36.2
Carly 35.1
Don 35.5
3. Print the names of players with a record bigger than 35.
4. Print the name of the player with the highest record.
5. Remove all players (name and record) with a record less than 33.
6. (Optional, if you dare) Sort the players by the best record. You need to maintain the relation between the two arrays/lists.
7. Exit
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
