Lab 7 Directions

Lab 7 Directions (30 Points)

Automobile Packages (Factory pattern) (25 Points)

You are being asked to write Java code for this lab. When you buy a car, dealers offer add-on packages with features such as upgraded radios, aluminum wheels, and sunroofs. The composition of these packages may be somewhat of a mystery to buyers, and the composition may vary in different geographic regions. For example, in Europe, stricter emission standards, product availability, and local laws might be factors. At the same time, a car manufacturer wants to standardize the names and general content of packages to protect their brand.

Save Time On Research and Writing
Hire a Pro to Write You a 100% Plagiarism-Free Paper.
Get My Paper

Assume you are asked to design a software component that assembles the content of two auto packages (“Luxury Bundle” and “Performance Bundle”) for three geographic regions (Europe, Asia, North America), relating to two models of cars sold by a single manufacturer. As you might guess, the Factory Method pattern can be applied to this problem. Your task is to design AND CODE the interfaces, abstract classes, and essential concrete classes for this application. Be sure to create a test class to exhaustively test all possibilities.

UML Diagram (3 Points)

Use a UML diagram to show the class relationships. When you upload it, either scan or photograph your UML diagram.

Submission (2 Points)

Submit a zip file called FirstnameLastnamelab7.zip containing your UML diagram images and your Java source code. Do not use the package statement in any of your files. Each class should be in a separate file.

Save Time On Research and Writing
Hire a Pro to Write You a 100% Plagiarism-Free Paper.
Get My Paper
Still stressed with your coursework?
Get quality coursework help from an expert!