need help with a small java program

chris1234

Write a program that prompts the user to enter the mass of a person in kilograms and outputs the equivalent weight in pounds.  Output both the mass and the weight rounded to two decimal places. (Note that for standard Earth gravity, 1 kilogram = 2.2 pounds.) Format your output with two decimal places.

Your answer should use dialog boxes for the input/output statements.

Submit your compiled Java code for this assignment, compress the .java file into a single .zip file.

    • 12 years ago
    • 5
    Answer(1)

    Purchase the answer to view it

    • weight.java
    • weight.class
    Bids(0)