// Project: InchesToCm // Module: in2cm3 // Source code file: Convert.java // Input a length in inches and convert it // centimeters. Use a method to perform the // conversion, placing the method in a the // separate source code file Convert.java. // The method call must be qualified by the // class where it is located. public class Convert { // Static method that converts length in inches to cm. public static double convertInchesToCm(double inches) { // Convert inches to centimeters. double cm = inches * 2.54; // Return converted length. return cm; } }