Search for question
Question

2. (Conversions between pound and kg)Write a program that invokes these methods to display

the following tables: (25 points)

Note: please print to three decimal places.

/** Convert from Kg to Pound */

public static double kg ToPound(double kg)

/** Convert from Pound to Kg/

public static double poundToKg(double pound)

The formula for the conversion is:

Pound (lb)-kg/0.454

Kg-pound (lb) 0.454

Write a test program that invokes these methods to display the following tables:

Pound

Kg

Pound

1.0

10.0

22.026

2.0

9.0

19.423

3.8

8.0

7.0

6.0

5.0

4.0

3.0

2.0

1.8

4.0

5.0

6.8

7.0

B.B

9.0

10.0

KE

0.454

0.903

1.362

1.816

2.27

2.724

3.178

3.632

4.006

4.54

17.621

15.418

15.215

11.013

8.81

6.687

4.425

2.282

Fig: 1