What you posted for the program's output was confusing: 50 kilograms is 50.0 pounds
Glad you got it working.
Type: Posts; User: Norm
What you posted for the program's output was confusing: 50 kilograms is 50.0 pounds
Glad you got it working.
Do the methods return the correct values?
The above does not look correct.
What is this variable for: dKilogramsFromPounds? It isn't used for anything.
Are these variable's values what you are seeing printed:
nNum1 = 0;
dNum2 = 0.0;
If you don't want those values printed, remove the above statements from the method.
You've removed all the other code where the variables are defined.
Who suggested that you remove all that code?
Look at the lines the method is to print. It has two numbers and some Strings.
If you pass the two numbers to the method in the order they are to be put into the text of the message, then the only...