Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Q3) The squads you made in the previous part should have 26 players in each. Now you want to pick a team to play in

Q3)

The squads you made in the previous part should have 26 players in each.

Now you want to pick a team to play in a match.

i)Complete the static method getTeam in the Main class.

ii) It should return a team that has 11 players matching the managers preferred formation which is 4-4-2.

Hint:

The formation is organised so the first digit is for defenders, the second for midfielders and the final digit for forwards. The goalie is not included but you must have one in your team.

iii) Pick the best players for your team.

iv) Rank the players using an instance of the Comparator interface to organise your squads players.

iiv) Combine all the players attributes and average them to find the best players.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Modeling And Design

Authors: Toby J. Teorey, Sam S. Lightstone, Tom Nadeau, H.V. Jagadish

5th Edition

0123820200, 978-0123820204

More Books

Students also viewed these Databases questions