CO2220: Computing And Information Systems - Sophisticated - Network Programming Assignment Help

Download Solution Order New Solution

Network Programming Assignment Help

Assignment Task: When you compile and run the GUI, and choose the Parse Match Results button and then the 2017-18 Premier League Results. txt you will find that the J Text Area is empty. This is because the Dated Match Result Parser class is not parsing the results given to it to a Dated Match Result objects successfully. You will also see the shell displaying information about a Null Pointer Exception that has been thrown by the update Played Stats (Dated Match Result) method in the League Table Creator class. Null Pointer Exception is an unchecked sub-class of Exception and hence it has not been handled with try/catch. The exception will not be thrown once the parse Line(String, Local Date) method works as it should. The following methods called by the parse Line(String, Local Date) method in the Dated Match Result Parser class return dummy values in order that the GUI will compile. Complete the methods so that the parseLine(String, Local Date) method works as it should to parse its String and Local Date parameters to a new Dated Match Result object.
  • parse Home Team
  • parse Home Score
  • parse Away Team
  •  parse Away Score
If the user clicks on the Serialize Match Result button, the GUI takes no action. What should happen when the button is pressed is that the J File Chooser asks the user for a file name to serialize to, then a serialization method in the Serialization Util class is called, and the Array List match Results containing Dated Match Results objects will be serialized into the file named by the user.
  • Write the serialized method in the Serialization Util class.
  • Write the inner class Serialize Button Action and remove the comment marks from the statement given below to test your work.
  • Write an appropriate constructor for the Serialization Util class.
When you press the Save League Table As Text File button, the J File Chooser asks for a file name to save to, however no file is made and nothing is saved. The save League Table(File) method of the League Table Creator Gui class uses the get Text() method from the J Text Area class to take the contents of the J Text Area, which includes line breaks, as a String and send it to the write(String, File) method of the League Table File Writer class. The write(String, File) method’s body is empty, hence no file is made and nothing is saved. Complete the method, being sure to save the text to a file with the UTF-8 charset. In order to be able to add new results to the league, while excluding any duplicate results, we need to override equals() in the Dated Match Result class so that the comparison works when two Dated Match Result objects are compared that are in different places in memory. The League Standing Comparator class compares points to find teams’ standing in the league. If teams are equal on points then it compares goal difference. If teams are equal on points and goal difference then they are equal. Change the comparator so that it implements an additional comparison: if teams are equal on points and goal difference, then the comparator compares the number of goals scored by each team. The team with the higher number is ahead of the other team in the league. However, if both teams have scored the same number of goals then they are equal. Describe how the League Table Creator Gui class can give the results of the league up to a particular date, when the user clicks on that date. You do not need to describe in detail how each method and class involved in producing this result works: a high level overview will be enough. When adding new methods and variables, or renaming existing ones, please remember to make your names as meaningful as possible, following the advice from Clean Code given in coursework assignment 1, and reproduced here in Appendix A.
This CO2220Network Programming Assignment has been solved by our IT experts at onlineassignmentbank. Our Assignment Writing Experts are efficient to provide a fresh solution to this question. We are serving more than 10000+ Students in Australia, UK & US by helping them to score HD in their academics. Our Experts are well trained to follow all marking rubrics & referencing style.

Get It Done! Today

Country
Applicable Time Zone is AEST [Sydney, NSW] (GMT+11)
+

Every Assignment. Every Solution. Instantly. Deadline Ahead? Grab Your Sample Now.