Question: Write a class called KiloToPoundTable that prints the below table. Use printf() and while statement. No credit if while and printf() statement is not
Write a class called KiloToPoundTable that prints the below table. Use printf() and while statement. No credit if while and printf() statement is not used. Kilograms Pounds 2.2 6.6 11.0 15.4 19.8 24.3 28.7 33.1 1 3 5 7 9 11 13 15 1) 1 kilogram is 2.20462 pounds (so, 2nd row will be 3* 2.20462) 2) Use while statement to iterate 3) Set width to 12 for each column 4) Use printf() for precision up to tenths place
Step by Step Solution
3.22 Rating (149 Votes )
There are 3 Steps involved in it
Heres a Java class called KiloToPoundTable that prints ... View full answer
Get step-by-step solutions from verified subject matter experts
