Write a gui that can be used to keep track of the score

Assignment Help JAVA Programming
Reference no: EM131264483

JAVA ASSIGNMENT

Part 1 is just a model which is compatible with View and Control, so that solution is required separate to to work without GUI.

Where as the part 2 is MVC, that is where we implement the GUI in view and control and integrate it to existing model

Tennis Score Board

This coursework is only 40% of your module mark. You will write a GUI that can be used to keep track of the score during a lawn tennis match at Wimbledon. You will be using MVC (Model View Controller) so you will submit the Model first for 25% of the module mark and then the View and Controller together for 15% of the module mark.

This coursework will assess the following learning outcomes.

• Create a software artifact by applying the methodologies of advanced object- oriented programming to a requirements speciation
• Select and apply a design pattern from one of the major design patterns to solve a given problem
• Consult on-line code libraries to find the classes and methods most appropriate for solving a particular problem
• Create appropriate documentation that clearly communicates the intend behavior of a program

Description of the GUI

592_Tennis Score Board GUI.jpg

As you can see, the GUI is composed of two buttons, to be pressed each time a player wins a point, plus the scoreboard itself, which is divided into three portions. The central portion records the names of the two players. Each match is played as the best of five sets, so it continues until one player has won three. The left portion, initially blank, shows the results of the previous sets.

Each set is made up of a series of games, and each of these is made up of a series of points. The right portion shows the number of sets won and the state of the current set. You will need to implement both tie-breaks and deuce-advantage play. (https://en.wikipedia.org/wiki/Tennis_score has full details of the scoring system.)

Part 1

Marking Scheme for Model

10% Model, implementing, for the highest marks, all the required functionality with an interface designed to be convenient for the Controller, View and JUnit class to use with no superfluous public methods. It should have no references to those two classes and contain no GUI code. It should be programmed according to the principles of good object-orientation; such as encapsulation, inheritance and polymorphism. It will likely have many classes and therefore it should have an explanatory class diagram.

5% Specification of Model in JML or Spec# or asserts, including invariants for the class as well as pre and post conditions for each method. This will be marked according to how many of the relevant conditions are included and the correctness of the JML / Spec# / asserts. Partial credit will be available for describing them in English. Some statements may be un-provable due to the limitations of JML / Spec# even when specified correctly. In such cases, there will be no negative affect on your marks.

10% Unit testing of the Model in JUnit. There should be three tests, significantly different from each other. You should explain in comments the particular situation you are testing for. You should use write (and then call) methods for the Model that set it into the state desired for the test. It should be easy to see what state the Model is being set to by reading the code for the unit tests.

Part 2

Marking Scheme for View and Controller

5% Controller, which must forward only valid requests to the Model, querying the Model if necessary to and out if the request is valid, and must also enable / disable buttons as appropriate. In particular, when the match has finished, it should disable the buttons and cause the View to change all the yellow writing to grey, except for the winner's name, which will be in red. It must have no GUI code, though it may send messages to the View. It will be marked with respect to these requirements.

5% View, which will be multiplied by a number between 0 and 1, indicating the code quality/commenting/formatting as described above for the Model. For example, there should be no "magic numbers" i.e. all calculations of (x,y)-coordinates should be based on predefined constants.

5% Another copy of View, translated to the JavaFX framework, instead of Swing. It will also be scaled in the same way.

https://www.dropbox.com/s/z52sie537bju2jc/Assignment%20Details.rar?dl=0

Reference no: EM131264483

Questions Cloud

Determine the largest allowable value of p : The simply supported beam is loaded by a force P that is inclined at 40° to the vertical and passes through the centroid C of the cross section. If the working bending stress is 18 ksi, determine the largest allowable value of P.
Comprehensive literature review : Comprehensive literature review. Choose to conduct a project that is technical (i.e. practically based e.g. development of a prototype, simulation, design framework etc) that fall within computing and IT curriculum.
Sportswears statement of cash flows : Reading Columbia Sportswear’s Statement of Cash Flows. Refer to Columbia Sportswear's statement of cash flows for the year ending December 31, 2011. What was the amount of dividends paid to stockholders during the period? Enter your answer in dollars..
True in terms of the corporation : Carole owns 75% of Pet Foods, Inc. As CEO, Carole must travel extensively and does so on the company jet. In addition, she also uses the jet to take several personal vacations. Carole reports the value of the personal use of the jet, $140,000, as add..
Write a gui that can be used to keep track of the score : This coursework is only 40% of your module mark. You will write a GUI that can be used to keep track of the score during a lawn tennis match at Wimbledon.
Find the smallest value of d : A circular rod of diameter d is bent into a semicircle of mean radius r = 2d. If the working normal stress is 20 ksi, find the smallest value of d if the rod is to carry the 1800-lb load safely
Cash receipts process : CASE A: Fred ’ s Electrical, Inc. (Cash Receipts Process) Fred ’ s Electrical, Inc. sells electrical parts to electrical contractors in the northwest-ern United States. Prepare an annotated table of entities and activities. Indicate on thistable the ..
New machine for capital budgeting purposes : Wendell’s Donut Shoppe is investigating the purchase of a new $34,500 donut-making machine. The new machine would permit the company to reduce the amount of part-time help needed, at a cost savings of $5,600 per year. What would be the total annual c..
Economic viability of projects in process industries : Aim To develop an understanding of evaluating the economic viability of projects in process industries - to prepare cost estimation, financial statements and cash flow for industrial operation

Reviews

Write a Review

JAVA Programming Questions & Answers

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic class.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd