Download as:
Rating : ⭐⭐⭐⭐⭐
Price: $10.99
Language:EN
Pages: 11

Toyotapublic string carmodel model the car

- Page | 2

- Page | 3

55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87

@Override
public String toString(){
return("Stock#"+ stockNumber +": "+ carYear + " " + carMake + "" + carModel + " \n Mileage:" + carMileage +"\n Price: "+ carPrice +"\n\n"); }

}

a. (3 pts) Which SOLID design principle does this design violate?

- Page | 5

However, as a user wins races and earns credits, he/she can buy optional
customizations (e.g., CustomTransmission, CustomWheel, and PremiumEngineOil ) to improve the performance of his/he car. Which design pattern would be most appropriate to design the class hierarchy for base car model and its
customizations and why?

b.(10 points) Draw an UML diagram of the design.

4. (12 + 3 pts) From the following UML class diagram, compute the coupling factor (CF) for

each class? What is the average CF of the entire system?

int b() {
return (z-1);
}

int c() {
return d() + e(y);
}

}

- Page | 10

a.(5 pts) Which architecture style would be most suitable for the FoodieBuddies

project? Explain your selection.

Copyright © 2009-2023 UrgentHomework.com, All right reserved.