CO4403: Referral Coursework 1 Assignment 2019-20
Deadline: Midnight 7th August 2020
Weighting: 50% of Overall Module Mark
This is a referral assignment meaning the maximum mark you can achieve is 50% and you must achieve a mark of 50% in order to pass.
Learning outcomes tested in this assignment:
1.
Explain and use key programming constructs to create correct and efficient programs
2.
Design, and implement Object-Oriented programs
3.
Develop technical software solutions to complex problems
A
B
Description
ParentClass
Parent Class, stores an array of type String and an array of type int
Child1Class
Child Class 1 inherits from Parent Class, stores an array of type double
Child2Class
Child Class 2 inherits from Parent Class, stores an array of type long
PMethod
Public method in Parent Class, 2x int as parameters, returns a String
PMethod
Public method in Parent Class, 2x String as parameters, returns an int
C1Method1
Public method in Child Class 1, 2x float as parameters, returns a double
C1Method2
Public method in Child Class 1, 3x String as parameters, returns a double
C1Method3
Private method in Child Class 1, 2x Double as parameters, returns a long
C2Method1
Public method in Child Class 2, 2x boolean as parameters, returns a String
C2Method2
Private method in Child Class 2, 2x String as parameters, returns a String
C2Method3
Public method in Child Class 2, 3x long as parameters, returns a String
Using the information from the table above hand-draw a UML Class diagram on paper, ensure that:
· you use the correct notation for relationships between classes,
· class names are correct,
· method names are correct,
· method parameters/return types are correct,
· class instance variables are correct,
· variables are named appropriately,
· access modifiers are shown where appropriate, you are free to choose which modifier to apply where this is not mentioned in the table above.
You do not need to include class constructors in your UML diagram. Take a photo of your UML diagram and submit it through blackboard.
Task 1: Implement the UML Class diagram you have created in Java code, ensure the classes are in separate files.
Task 2: Create a driver program that creates instances of all classes, calls all methods with appropriate parameters, and outputs the results to the console.
Task 3: Add code into each method to act on the parameters and use them to generate an appropriate return value. You need to decide how to do this based on the parameters and return type of a method. For example, if given ‘3x String as parameters, returns a double’ you could convert all Strings to doubles (using Double.parseDouble or similar) and then return the highest.
Task 4: Add constructor methods to each of the 3 classes and use them to initialize instance variables.
Task 5: Extend Task 3 so the class instance variables are acted upon (ie data added and retrieved) in at least one method in each class.
Task 6: Ensure your driver program demonstrates that you have completed all the tasks, particularly that the methods act on given parameters (Task 3) and that methods act upon class instance variables (Task 5)
You will be expected to submit your entire source code (and Eclipse project). Your code must be commented, and you must include a separate document of references to any resources you used in the development of your application (books, web sites, forums etc).
Marking Criteria
Part 1 – Design (Worth 10% of this Assignment)
To obtain 5% you must have produced something recognizable as a UML class which aligns with the brief.
To obtain 10%, you will have produced a correctly constructed UML diagram showing relationships between classes and correct class/method names with only very minor mistakes.
Part 2 – Development Task (Worth 35% of this Assignment)
To obtain 10% you must have completely implemented your given UML diagrams into Java objects, your code must compile and have a driver program which creates objects and calls methods.
To obtain 25%, in addition to the above, you must have completed Task 3 successfully (with only very minor mistakes) and evidenced application of key Java programming constructs (such as if conditional or for loops).
To obtain 35%, in addition to the above, you must have completed all tasks successfully (with only very minor mistakes). Implementations of tasks 3 and 5 will show understanding and application of key Java programming constructs. Your source code will be appropriately organized and commented.
Part 3 –Demo (5% of this Assignment)
To obtain 5% for the demo you must have demonstrated a working and interactive Java SE application conforming to the assignment specification and clearly explain key technical aspects of Java code applied in the implementation tasks 3 and 5.
Submission of assignment work
Submit all your code, video demo, and any other documentation on Blackboard by the deadline at the top of this document.
You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.
Read moreEach paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.
Read moreThanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.
Read moreYour email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.
Read moreBy sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.
Read more