Question: Can anyone please help me with this program? P.S. The section where it says implement a driver program after step 3, Step 4: add length1

Can anyone please help me with this program?
P.S. The section where it says" implement a driver program" after step 3,
Step 4: add length1 and length2 and assign the result to length3
Step 5: Print out length1+length2=length3
Step 6: Subtract length2 from length1 and assign the result to length4
Step 7: Print out length1-length2=length3
STAGE 1 | The length of an object can be described by two integers: feet and inches (where 12 inches equals one foot). Class UML is as follows: Length - feet: int -inches : int +Length) + Length(newFeet: int, newinches: int) +getFeet): int + setFeet(newFeet: int) void + getinches(: int + setinches(newlnches: int): void + add(otherLength : Length): Length + subtract(otherLength: Length) : Length + toString0: String Default constructor sets the length of an object to 0 feet & O inches Overloaded constructor sets the length of an object to given feet & inches For each data field, define the accessor and mutator methods add method, adds two length objects and return the result as a length object (feet & inches must be in range) Subtract method, subtracts two length objects and return the result as a length object (feet & inches must be in range. this object must be larger than otherLength) toString() method returns a String in format of ## ##" For example: Length meLength = new Length( 10, 6); System.out.printin( myLength.toString0); Will display: 10' 6 STAGE 2 1 Implement the Length class using the above UML. STAGE 3 | Driver program Implement a driver program called TestLength,java as follows: 1) Create Length object length1 being 10' 5 2) Create Length object length2 being 5 10 3) Print the two object
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
