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.

Q6: 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, i.e., car and the car specification.
Cars from all automotive manufacturers will have the following information: VIN, type (e.g., SUV, Sedan), and color. These manufacturers may also add additional unique features to their cars (e.g., RemoteStart for all BMW cars).
Each automotive manufacturer has its own type of car specification, i.e., 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 1- Now, if you need to use a creational design pattern to support the system described above, which design pattern will you use? Why?
Part 2- 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 3 Please explain how your design in Part 2 satisfies the SOLID principles.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!