electrical engineering
electrical engineering
Challenge: #4
Marks: 0% of module marks
There will be a 5% Quiz later where marks will only be awarded if this
assignment is submitted in Brightspace.
Notes: All module handouts and laboratory/challenge work completed must be maintained
in an accessible file storage device. I’d suggest a top level folder per module.
Consider using a separate subfolder for this work, e.g. named Coursework4 or CW4.
Reminder: Maintain regular backups of all your work.
The first exercise class Module is very prescribed where the requirements are specified in a lot of
detail. The verbosity is to guide you step by step towards completion.
The optional second exercise requirements are deliberately sparse, to encourage you to reflect and
create, and thereby deepen your knowledge.
AY25a 1/3
EE4011 Computer Software 1 Challenge #4
Challenge Exercise 1: Extend the Module Class
Steps: 1. Start by reading the entire Module class requirements below.
2. Complete a UML Class Diagram using the attributes given, and the operations:
i.e. set/get methods, constructors, toString methods.
3. Code the class Module to represent the object selected.
4. Code the class ModuleTest to test all methods in the class Module.
5. When coding, pay attention to naming and code style and layout.
6. Ensure appropriate file header comments are in each Java file.
AY25a 2/3
EE4011 Computer Software 1 Challenge #4
Optional
Challenge Exercise 2: Design, code and test a class from scratch
Steps: Choose a real world object and create class to represent it. See examples below.
1. Select and name a class and identify the attributes you want to store.
2. Complete a UML Class Diagram defining the attributes, and the operations:
i.e. set/get methods, constructors, toString and any other methods.
3. Code the class ClassName to represent the object selected.
4. Code the class TestClassName to test all methods in the selected Class.
5. When coding, pay attention to naming, code style and layout.
6. Ensure appropriate file header comments are in each Java file.
AY25a 3/3