program called MeterConversions that will ask a user, inside a loop, to enter the number of meters
Question:
program called MeterConversions that will ask a user, inside a loop, to enter the number of meters to convert. The loop will repeat as long as the number of meters is not less than or equal to zero. Inside the loop, the method printMeterConversions will be passed the number of meters and it will print both a conversion to feet and to miles using printf and the newline escape sequence. You will need to create two other methods with the following method headers:
public static double metersToFeet(double meters)
public static double metersToMiles(double meters)
These methods will be used by printMeterConversions in order to calculate the conversion numbers for the output. The following will assist with the conversions:
3.279 feet = 1 meter and 1609.34 meters = 1 mile
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill