Академический Документы
Профессиональный Документы
Культура Документы
The UoM basketball team needs 3 additional players to complete its squad to play in the InterCollegiate
Basketball tournament. Since the deadline is quite short, the coach does not have time to audition all
potential players. However, over the past years, it has been seen that taller players do better. The next
criteria for the performance of players is their bodymass index (BMI), with a higher BMI being
preferred.
You are to write a program to select the three best players to join the squad. Your program should
prompt for the number of players, then, ask for details of each player and add them to a LinkedList.
The program should then print the details of the three players who will join the squad. The players are
prefered in terms of height, then BMI, then according to descending order of name)
Write the file ManageBasketPlayers.java. Submit your work as a zip file with both
ManageBasketPlayers.java and BasketPlayer.java. Otherwise, include BasketPlayer.java as a static
class within ManageBasketPlayers.java and submit ManageBasketPlayers.java.
A sample run with behavior of the system is as follows (user input underlined):