MeasurementConverterV1

MeasurementConverterV1 - /*

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
/**  * The purpose of this program is to convert units of measurement.  *   * @author H. Liu   * @version 10/17/07  */  public class MeasurementConverterV1     public static void main(String[] args)     {         System.out.println("This program converts to and from");         System.out.println("Metric and English units of measure.");         System.out.println("====================================");         //local variable declarations - assign actual values below         double miles = 1.9;            // distance in miles         double feet = 6230.0;          // distance in feet         double kilometers = 1000.0;    // distance in kilometers         double pounds = 204.0;         // amount in pounds         double kilograms = 98.0;       // amount in kilograms         double gallons = 55.0;         // amount in gallons         double liters = 1.95;          // amount in liters 
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 3

MeasurementConverterV1 - /*

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online