Question: Java Please answer as soon as you can Thank you QUESTION 6 Based on the UML Diagram for a Car class, you are to write

Java Please answer as soon as you can Thank you
QUESTION 6 Based on the UML Diagram for a Car class, you are to write a line of java code that will be the algorithm for returning the Assessed Value of the Car instance identified by ford. Write the line(s) of code that will be in the body of the getAssessValue method of the Car class. Assume there is a constant defined: final int CURRENT YEAR - 2020; Method header and body enclosures are below: public double getAssessValue() Type your code in the short answer box, Car -make String -model String -yearModel int -marketValue double +Car() +Car(mak: String, mod String, yrMod int, mkIVal double) *setMake(mak: String) void +setModel(mod: String) void +setYearModel(yrMod int) void +setMarketValue(mktVal double) void +getModel): String +getYearModel(): int +getMarketValue() double +getAssessValue() double Responsibilities - Assessed value method is calculated by subtracting 200 00 for each year of a car's age from the market value
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
