Question: Write Java classes for previous UML diagram. 1. Modify: Walmart- it now has property- totalRevenue; and a behavior that returns total revenue. In oilChange behavior,
Write Java classes for previous UML diagram. 1. Modify: Walmart- it now has property- totalRevenue; and a behavior that returns total revenue. In oilChange behavior, charge 49.99 for Coupe, 39.99 fpr Sedans & 29.99 for Hatchbacks. 2. One day 20 cars- 10 Sedan, 2 Spark, 4 Volester, 2 Mustang, 1 camaro, 1 challenger did the oil change. 3. Print totalRevenue Walmart produced that day. 4. Write testcases in Junit to test Walmarts oil change service. Test case should include varieties of Cars.
need to make one with the info
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
