CSE1OOF/4OOF Java Assignment-La Trobe University Australia

Instruction to students: This is an individual Assignment. You are not permitted to work as a Pair Programming partnership or any other group when writing this assignment.

Task: CSE1OOF/4OOF Java Assignment

CSE1OOF-4OOF Java Assignment

CSE1OOF-4OOF Java Assignment

Using code not taught in OOF
Please also note carefully that whilst we encourage innovation and exploring java beyond what has been presented in the subject to date, above all, we encourage understanding. All of the Tasks that follow can be solved using techniques that have been presented in lectures, lecture / workshops and labs so far. These are the techniques and knowledge that we will later be examining in the Real Time Test (20 marks) and the exam (60 marks). Code and techniques that are outside the material presented will not be examined, of course.

Background – Task
This program will implement a user interface for adding teams and players, displaying information on teams and players, and playing a simplified game of cricket. In this task there is a maximum of 3 teams, and each team can only have one player. This program will have limited functionality but large portions of this will be used in Assignment
D.

Excellent Assignment Help

We Aim At:

  • Lowest Price.
  • 100% Uniqueness.
  • Assignment Fastest Delivery.
Call Now : +61 363 877 039

Background – Base program
The Cricket Match class has been partially written for you.
This file can be copied from the csilib area:
cp /home/student/csilib/cse1oof/assignSum18/assignCsum18/CricketMatch.java .
Some methods have been written for you.
You will need to edit the main method to add your name and your student number.

Task – Solution length: CSE1OOF/4OOF Java Assignment-La Trobe University Australia

The code should be around 300-400 lines of code (both files combined). If your code is significantly larger, you may want to reconsider your approach.

Player.java

The Player class contains information on the players name, country and batting skill
Create the Player class based on the UML class diagram and information below. (Not all methods explained)
toString()
The toString() method should return a String such that all attributes on a single line (see example)

Team.java

The Team class contains information on the teams name, games won, games lost, games tied and the player
Create the Player class based on the UML class diagram and information below.
Team(String teamName)
The constructor sets the team name based on the argument passed, the games won, lost and tied are all set to the default value of 0, and the player is set to the default value of null AddPlayer(Player player)
The addPlayer method adds a single player by assigning it to the player attribute RemovePlayer()
The removePlayer method removes the single player by assigning the player attribute to null toString()
The toString method should return a String such that all attributes are on separate lines (see example)

Excellent Assignment Help

We Aim At:

  • Lowest Price.
  • 100% Uniqueness.
  • Assignment Fastest Delivery.
Call Now : +61 363 877 039