Question: 2. Consider a car manufacturer that assembles different trim levels of a car: i) Basic has all the basic features of a car ii Luxury

 2. Consider a car manufacturer that assembles different trim levels of

2. Consider a car manufacturer that assembles different trim levels of a car: i) Basic has all the basic features of a car ii Luxury - has everything the Basic version has plus luxury features, e.g. leather seats, high-fidelity sound system, etc. i) Ultimate has everything the Luxury version has plus state-of-the-art features, e.g. lane-following, turn-by-turn navigation, etc. Design a system that can easily assemble a car of any trim level that a user requires. Draw the Class diagram. There should be a method assemble) for the manufacturer to assemble cars of a particular trim. You are free to include any other methods in your class diagram. (a) (5 marks) Assume that all the classes in your diagram in Q2(a) above had been implemented. Write the Java code for the main) method to instantiate one instance of the Luxury trim, and one instance of the Ultimate trim. You may give your public class any name that you like. (b)

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 Databases Questions!