Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need a quick answer for this java programming please Activity 1 (Portfolio Task): Implement classes Team, FootballLeague, and Dashboard that provide the following functionality:

I need a quick answer for this java programming please

Activity 1 (Portfolio Task): Implement classes Team, FootballLeague, and Dashboard that provide the following functionality: Class Team: Stores teams name, number of wins, draws and losses, as well as the number of points (points are recalculated every time the number of wins, draws and losses is updated). Note: A team is awarded 3 points for every win, 1 point for every draw and 0 points for every loss Creates a human friendly representation of the class (i.e. toString()) Allows a total ordering of teams (i.e. teams are Comparable) Class FootballLeague: Stores a list of Teams included in the league (while maintaining the list in descending order based on Teams points) Teams can be inserted (adding a new team) and removed (deleting an existing team) at any point Teams position in the league can be updated by updating teams wins, draws and losses (changes to points must be reflected in the ordering of the list) Teams can be relegated at the end of the season (i.e. the 3 teams with the least amount of points) The league table (i.e. list of Teams) should be printed after every change takes place Class Dashboard: Creates a football league instance and subsequently inserts, updates, removes and relegates teams

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_2

Step: 3

blur-text-image_3

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

Spatio Temporal Database Management International Workshop Stdbm 99 Edinburgh Scotland September 10 11 1999 Proceedings Lncs 1678

Authors: Michael H. Bohlen ,Christian S. Jensen ,Michel O. Scholl

1999th Edition

3540664017, 978-3540664017

More Books

Students also viewed these Databases questions