(Must be written in Java) 5.9 (Conversions between feet and meters) Write a clas
ID: 3616430 • Letter: #
Question
(Must be written in Java)
5.9
(Conversions between feet and meters) Write a class thatcontains the following two methods:
/** Converts from feet to meters */
public static double footToMeter(double foot)
public static double meterToFoot(double meter)
The formula for the conversion is:
Meter = 0.305 * foot
Write a test program that invokes these methods to display thefollowing tables:
Feet Meters| Meters Feet
1.0 0.305 | 20.0 65.574
2.0 0.61 | 25.0 81.967
…
9.0 2.745 | 60.0 196.721
10.0 3.05 | 65.0 213.115
Thanks in Advance- Aphareus
Explanation / Answer
please rate - thanks public class untitled {public static void main(String[] args) {int i; double feet, meters; System.out.println("Feet Meters"); for(i=0;iRelated Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.