Implementing Abstract Factory Design Pattern for Building

Download Solution Order New Solution

Assignment Task

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 ship's 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).

This IT Computer Science has been solved by our PhD Experts at My Uni Paper.

Get It Done! Today

Country
Applicable Time Zone is AEST [Sydney, NSW] (GMT+11)
+

Every Assignment. Every Solution. Instantly. Deadline Ahead? Grab Your Sample Now.