Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

COP 4814 Lab 7 (20 Points in total) Automobile Packages (Factory pattern) (15 Points) You are being asked to write Java code for this lab.

image text in transcribed

COP 4814 Lab 7 (20 Points in total) Automobile Packages (Factory pattern) (15 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. 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. I will compile and run from the command line

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Datacasting How To Stream Databases Over The Internet

Authors: Jessica Keyes

1st Edition

007034678X, 978-0070346789

Students also viewed these Databases questions

Question

Distinguish between filtering and interpreting. (Objective 2)

Answered: 1 week ago