Question: Add a new method to your MyClass: String toFeetlnch ( double height ) The method takes the height in m and returns it in feet
Add a new method to your MyClass:
String toFeetlnchdouble height
The method takes the height in m and returns it in feet and inches. Note that:
The method's return should be a String not a double
The returned string must have the feet amount F followed by a single quote followed by the inch amount I followed by a double quote; ie FT
For example, if the stored height is then the returned string should be
a
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
