Answered step by step
Verified Expert Solution
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.
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
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started