// Convert from Meters to Feet and Inches The program should repeatedly input a length in meters and then print that length in feet and inches. private class MeterToFtIn { public static void main(String[ ] argv) { double meter, f, i; int more; Scanner console = new Scanner(System.in); System.out.print("Do you wish to input another length in meters: "); more = con.nextInt( ); more = more.toUpperCase( ); while(more.charAt(0) = 'Y') { System.out.print('Enter length in meters: '); meter = con.nextDouble( ); f = meter * 3.28083989501312; feet = (int) f; inches = (int) (12 * (feet - f) + 0.5); System.out.print("The length is "); if (feet == 1) System.out.print(feet + "foot "); else System.out.print(feet + "feet "); if (inches == 1) System.out.println(inches + " inch."); else if (inches < 1) System.out.println(inches + " inches."); else System.out.println("."); System.out.print( "Do you wish to input another length in meters: "); more = con.next( ); more = more.toUpperCase; } } }