The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | May 2017 |
| Last Sign in: | 398 Weeks Ago, 4 Days Ago |
| Questions Answered: | 66690 |
| Tutorials Posted: | 66688 |
MCS,PHD
Argosy University/ Phoniex University/
Nov-2005 - Oct-2011
Professor
Phoniex University
Oct-2001 - Nov-2016
Task 1Value: 10 marksFor this task you will create a class containing a number of static methods for processing an array of marks, which are scores in a test. Each mark is an integer in the range 0 to 100 inclusive. On the Interact site for this subject, you will be provided with a class Marks, which has a method getMarksthat returns an array of marks for you to use in testing.The class ProcessMarksthat you create will have the methods specified below. Most will accept an array of marks as an argument; one will accept an array of characters. The return type should be appropriate for the returned value.
The following points should be taken into account in the design of your program:
Test your ProcessMarksclass, either by providing test code in a main method within that class or in a separate class. The test code will use an array of marks obtained from the getMarksmethod of the Marksclass provided on the Interact site. Test each one of the methods described above, displaying the results appropriately. The grades should be displayed 30 per line with a space separator between grades. The grade distribution should be displayed in the form:A: 10
B: 30
C: 105
D: 75
E: 35F: 10Task 2Value: 10 marksFor this task you have to define a class Circle2Dto represent a circle with a point in two dimensions labeled xand y and a radius. To test Circle2Dclass you also need to define a test class. The Circle2Dclass has the following state and functionality:
Draw the UML diagram for the class and then implement the class. Write a test class program that creates a Circle2D object c1(new Circle2D(2, 2, 2.5)), display its areas and perimeter, and display the result of c1.contain(3,3), c1.containes(new Circle2D(4, 5, 8.5)), and c1.overlaps(new Circle2D(3, 5, 0.3)).RationaleThis assignment has been designed to allow students to test and demonstrate their ability to:
Marking criteriaThese criteria will be used to evaluate Assignment 2:
Marking guide specific to tasks:
| Assessment 2 (Total marks 20) | ||||||
| Task 1 (total marks 10) | ||||||
| Criteria | Marks | Pass | CR | DI | HD | |
| a. Execution: Program launches, executes and terminates without crashing; program executes as specified. | 1.0 | Provide java files. They execute without crashing towards intended output (1.0) | ||||
| b. Program design & implementation:Classes with the functions: max, min and range methods (2); mean, median, and mode methods (2); grades and gradeDistn methods (2); which show good design and logic (1). | 7.0 | Implement ProcessMarks class with some functions and then combine it with Marks class for testing (3.5) | Implement ProcessMarksclass with majority of the functions and integrate the mark class with it for testing (4 - 6) | Implement and integrate classes with all functions by maintaining logical flow (7) | ||
| c. Presentation:Code uses good style (indentation, comments) | 0.5 | Few comments and minor indentation errors (0.25) | Proper indentation and comments in each block and major lines (0.5) | |||
| d. Submission: the documents with all components (analysis, testing, and output) | 1.5 | Provide sample output (0.75) | Provide all components within the specified word length(1.5) | |||
| Task 2 (total marks 10) | ||||||
| Criteria | Marks | Pass | CR | DI | HD | |
| a. Execution: Program launches, executes and terminates without crashing; program executes as specified. | 1.0 | Provide java files. They execute without crashing towards intended output (1.0) | ||||
| b. Program design & implementation:Circle2D (3.0) and TestProgram (3.0) classes are implemented as specified, showing good logic. | 6.0 | Implement Circle2Dand TestProgramclasses with some functions and combine them for testing (3) | Implement and integrate the Circle2D andTestProgram classes with majority of the functions for testing (4) | Implement and integrate theCircle2D andTestProgramclasses with all functions with minor error (5) | Implement and integrate theCircle2D andTestProgramclasses with all functions perfectly by maintaining logical flow (6) | |
| c. UML design: For classCircle2D. | 1.5 | UML with all components (0.75) | UML with all components and their modifier, argument, and return type with minor error (1.0) | UML with all components and their modifier, argument, and return type (1.5) | ||
| d. Presentation:Code uses good style (indentation, comments) | 0.5 | Few comments and minor indentation errors (0.25) | Proper indentation and comments in each block and major lines (0.5) | |||
| e. Submission: The document with all components | 1.0 | Provide sample output (0.5) | Provide all components within the specified word length with good explanation (1.0) | |||
PresentationMaterial to submit for Task 1
Material to submit for Task 2
RequirementsTo complete this assessment you might need to have covered material up to and including the topic Objects and Classes, Thinking in Objects, and Arrays in theText Book and Module.Online submission via Turnitin is required for this assignment. Details will be provided by your subject lecturer.
Hel-----------lo -----------Sir-----------/Ma-----------dam-----------Tha-----------nk -----------You----------- fo-----------r u-----------sin-----------g o-----------ur -----------web-----------sit-----------e a-----------nd -----------and----------- ac-----------qui-----------sit-----------ion----------- of----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n.P-----------lea-----------se -----------pin-----------g m-----------e o-----------n c-----------hat----------- I -----------am -----------onl-----------ine----------- or----------- in-----------box----------- me----------- a -----------mes-----------sag-----------e I----------- wi-----------ll