Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

JAVA program (Conversion form kilograms to pounds ) Write a program that display

ID: 3760640 • Letter: J

Question

JAVA program

(Conversion form kilograms to pounds ) Write a program that displays the following table (note that 1 kilogram is 2.2 Pounds ):

Kilograms ...................................Pounds

1 ...................................................... 2.2

3....................................................... 6.6

...

197.................................................. 433.4

199 ..................................................437.8

(note i used the dotes only to create the table in this writing method )

Explanation / Answer

class conversion{
public static double kgToPound(int a){
return a*2.2;
}
public static void main(String args[]){
System.out.println("Kilograms Pounds");
for(int i = 1; i < 200l i+2)
System.out.println(i+" "+kgToPound(i));
}
}