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 toFeetlnch(double 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; i.e. F'T".
For example, if the stored height is 1.78 then the returned string should be
5'1a".

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!