Assignment 1 (Individual Assignment)
代做uml | 代写java | project | assignment代做 – 该题目是一个常规的uml的练习题目代写, 是比较有代表性的uml/java等代写方向, 这个项目是assignment代写的代写题目
This assignment is to gain experience to implement the Abstract Factory Design Pattern.
A hypothetical Canadian Ship Building Company builds two different classes of surface ships namely the Halifax Class Ships and the Canadian Surface Combatant (CSC) Ships.
It first builds the ship hull and then starts adding equipments such as engine, sensors, weapons etc.
The focus of this assignment is to create ships and equip them with (i) an engine and (ii) a gun system.
The engine for Halifax Class Ships can achieve a maximum speed of 29 Knots (54 Km/hour)
The gun system for Halifax Class Ships is the 57mm/70 caliber gun from Bofors
The engine for CSC is expected to achieve a maximum speed of 27 Knots (50 Km/hour)
The gun systems for CSC is 127mm/64 caliber gun from Leonardo (expected)
Implement this program using Abstract Factory design pattern.
Use the skeleton package ShipAbstractFactoryStarter.zip as the starter code.
Draw the uml diagram using the starter code to understand the class interactions. Then update and submit the UML diagram that aligns with the full implementation.
The main program will feed the ships class type and name of the ship to build.
The program outputs the detail of the ships as it builds and equips the ships (see the sample output below).
Follow java coding conventions and ensure sufficient comments are added to be able to
understand the logic.
Ensure Javadoc comments are complete.
Ensure the code submitted is in the form of NetBeans project named
Lastname.Firstname.Assignment1 and exported as a .zip file named
Lastname.Firstname.Assignment1.zip (using your names, of course).
Here is a sample output:
run:
Created Halifax Class ship HMCS Ottawa
Adding equipment to Halifax Class ship HMCS Ottawa
HMCS Ottawa Engine: Maximum speed of 29 Knots (54 Km/hour)
HMCS Ottawa Gun: 57mm/70 caliber gun from Bofors
The HMCS Ottawa with Maximum speed of 29 Knots (54 Km/hour) and has 57mm/70 caliber gun from Bofors
Created Canadian Surface Combatant ship HMCS CSC
Adding equipment to Canadian Surface Combatant ship HMCS CSC
HMCS CSC001 Engine: Expected Maximum speed of 27 Knots (50 Km/hour)
HMCS CSC001 Gun: 127mm/64 caliber gun from Leonardo (expected)
The HMCS CSC001 with Expected Maximum speed of 27 Knots (50 Km/hour) and has 127mm/64 caliber gun from Leonardo (expected)
BUILD SUCCESSFUL (total time: 0 seconds)