MeasurementConverterV1_java

MeasurementConverterV1_java - //. ..finish declaring local...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
/** * MeasuermentConverter_v1 converts to and from Metric and English * units of measure. * * Sample Calculation: * 1 mile = 5280 ft, therefore 6230 ft / 5280 = 1.7992 miles * * * LVS 2007 * @author B. Jordan * @version 01/19/07 * * Modified by: (Student name goes here) * Date: (Today's date goes here.) */ public class MeasurementConverterV1 { public static void main(String[ ] args) { //local variable declarations - assign actual values below double miles; // distance in miles double feet; // distance in feet
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: //. ..finish declaring local variables here, including end of line //. ..comments doccumenting purpose of each variable //convert feet to miles feet = 6230; miles = feet / 5280; System.out.print(feet + " ft. = " + miles + " mi. \n"); //convert miles to feet //convert miles to kilometers //convert kilometers to miles //convert pounds to kilograms //convert kilograms to pounds //convert US gallons to liters //convert liters to gallons }//end of main method }//end of class...
View Full Document

Ask a homework question - tutors are online