Question: Need help with question 4 Write a class named Conversion that contains two methods that convert from feet to meters and from meters to feet,
Need help with question 4
Write a class named Conversion that contains two methods that convert from feet to meters and from meters to feet, returning the converted value. The method headers are shown below: 4. public static double footToMeter (double foot) public static double meterToFoot (double meter) Write a Java test class named DisplayMetricTable that invokes these two methods to display the following table Feet Meters Meters Feet 1.0 2.0 0.305 0.610 20.0 25.0 65.574 81.967 9.0 10.0 2.745 3.050 60.0 65.0 196.721 213.115 Note that you will have two Java classes in your source file (or you could separate them into two source files if you want). If both classes are in the same source (.java) file, only one of the classes can be declared public. We'll learn more about why later. From the DisplayMetricTable class, you will invoke the methods using Conversion.meterToFoot() with the value as the parameter to the method (similar for footToMeter))
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
