Kowal+Java+Codes

= __**Calculates the number of kilometers in a given amount of miles**__ = /****dogyears.java calculates the number of kilometers in a given amount of miles**  *@author Alexander Kowal   *@param args   */ import **java.util.Scanner;** publicclass **dogyears { // public = used outside class, kilometer to miles is only used in class ** publicstaticvoid **main(String[] args) { // Main Method, static = method raised by sending a message to the class, void = returns nothing to raiser, makes args (variable capable of keeping an array of string values) **

Scanner Keyboard = new **Scanner (System.// in //); // tells the program to take in info from the keyboard using scanner utility ** System.// out //.print( "Enter the number of miles: " ) ; // //shows enter the number of miles// // double **Miles = Keyboard.nextDouble ;**// // **//states that the next number entered through the keyboard is miles//** // double //** //kilometers = Miles*1.6 ; // // states that kilometers = miles*1.6 System.// out //.printf( "%nKilometers:%7.2f" ,kilometers) ; // tells the use the number of kilometers } }