Copeland+Java+Codes

/**MilesToKilometers Converter.java converts Miles to Kilos. *@author Matt Copeland *@version for Alice + Java book.

import java.util.Scanner { allow the scanner to run this program public class milestokilo { Name of class

public static void main (String [] args) {

System. out .print(" How many Miles do you want to convert ?") { //asks how much many miles//

//Scanner kbd= new Scanner (System.in);// // java 1.5 or later //

// double miles=kbd.nextDouble;// // double milesToKilo= miles *0.621371; miles to kilo value { the conversion rate from miles to kilos //

//System. out .printf(" %.0f miles = %.0f kilos",miles, milesToKilo); {'' // times the imput number times 0.621371 the rounds to the whole number

}

}