Yeah that was the problem I was having because thats not correct. But I guess my program is solid then.
Type: Posts; User: JBtheIV
Yeah that was the problem I was having because thats not correct. But I guess my program is solid then.
I said in my previous post that my program is running the way it should. 50 kilograms is 22.686.... and 50 pounds is 110 kilograms. I just wanted to make sure those 2 methods were set up right. I...
Oh ok, that makes alot of sense. But now when I test it again it reads something like this:
Please select the type of conversion you would like to make: 2
Please enter the kilograms: 50
50...
Quick update! I reworked my code around this time and managed to create the 3rd method. The only problem is it will give me a result something like this. Basically, I got it to print, but now it...
public static void main(){
nPounds = input.nextInt();
System.out.print(nPounds + " pounds is " + dPoundsToKilograms + " kilograms");
}
Why is it when I do this,...
Hello.
My teacher gave us an assignment.
Menu to be displayed for the user:
WEIGHT CONVERSION
1. Pounds to kilograms
2. Kilograms to pounds
Note: To indicate the type of conversion, the...