Question: Q 6 : Suppose you need to develop a simple system for a car dealership s inventory. The dealership has cars from different automotive manufacturers.
Q: Suppose you need to develop a simple system for a car dealerships inventory.
The dealership has cars from different automotive manufacturers. Suppose the dealership currently supports two manufacturers, including BMW and Honda. It may support more automotive manufacturers in the future.
For each automotive manufacturer, it provides two main products to the dealership, ie car and the car specification.
Cars from all automotive manufacturers will have the following information: VIN, type eg SUV, Sedan and color. These manufacturers may also add additional unique features to their cars eg RemoteStart for all BMW cars
Each automotive manufacturer has its own type of car specification, ie BMW specification and Honda specification in this case. We assume all specifications have the following information: MPG MSRP model, and engine specs. In addition, all specifications also have a method that allows the dealership to adjust the selling price, say adjustPrice The detailed operations of adjustPrice can be different for each automotive manufacturer.
Part Now, if you need to use a creational design pattern to support the system described above, which design pattern will you use? Why?
Part Provide a UML Class diagram showing essential classes, dependencies, attributes, and operations in your design by following the design pattern you selected. You shall also check if your design violates any design principles. If necessary, add a description to make sure the diagram can be easily understood by another person while keeping it as short as possible. Note: detailed implementation and codes are not required You can include a screenshot of your UML diagram here for submission.
Part Please explain how your design in Part satisfies the SOLID principles.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
