Search:

Type: Posts; User: JBtheIV

Search: Search took 0.11 seconds.

  1. Replies
    13
    Views
    1,316

    [SOLVED] Re: Working with Methods

    Yeah that was the problem I was having because thats not correct. But I guess my program is solid then.
  2. Replies
    13
    Views
    1,316

    [SOLVED] Re: Working with Methods

    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...
  3. Replies
    13
    Views
    1,316

    [SOLVED] Re: Working with Methods

    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...
  4. Replies
    13
    Views
    1,316

    [SOLVED] Re: Working with Methods

    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...
  5. Replies
    13
    Views
    1,316

    [SOLVED] Re: Working with Methods

    public static void main(){
    nPounds = input.nextInt();
    System.out.print(nPounds + " pounds is " + dPoundsToKilograms + " kilograms");
    }

    Why is it when I do this,...
  6. Replies
    13
    Views
    1,316

    [SOLVED] Working with Methods

    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...
Results 1 to 6 of 6