Search:

Type: Posts; User: jps

Search: Search took 0.11 seconds.

  1. Replies
    23
    Views
    1,611

    Re: Rookie Question! Help Appreciated

    I like it all the way up to:
    largestinteger = input.nextInt()

    When you do the test largestinteger < number2, if numbr2 turns out to be the larger, then you would assign the value of number2 to...
  2. Replies
    23
    Views
    1,611

    Re: Rookie Question! Help Appreciated

    ( number1 > number2, number3, number4, number5 ) Something like this just does not work
    Read over the pseudo code in post #16 again and see if you can follow the idea there. It is just a more...
  3. Replies
    23
    Views
    1,611

    Re: Rookie Question! Help Appreciated

    How about this for pseudo code:
    (First, the instructions)
    after typing 5 integers to then display the largest and smallest one

    set up a place to store 5 integers
    get 5 integers from the user...
  4. Replies
    23
    Views
    1,611

    Re: Rookie Question! Help Appreciated

    I understand, but no one can write the code for you, you can read about why here.
    This exercise is to get you some practice turning a simple process into code so that you can handle a more...
  5. Replies
    23
    Views
    1,611

    Re: Rookie Question! Help Appreciated

    Then what is this:
    int number1;
    int number2;
    int number3;
    int number4;
    int number5;and this:
    number1 = input.nextInt();
    number2 = input.nextInt();
    number3 =...
  6. Replies
    23
    Views
    1,611

    Re: Rookie Question! Help Appreciated

    Okay, so far so good.
    Have a look at what you have done so far.
    First you selected a number, (by default just the first one in line)
    Then you compared this number to the next number in line. For...
  7. Replies
    23
    Views
    1,611

    Re: Rookie Question! Help Appreciated

    Where is your list of steps to compare one number to all others?

    There are many ways to do this, and we do not want to do it for you. This is for you to learn, but we will help you translate your...
  8. Replies
    23
    Views
    1,611

    Re: Rookie Question! Help Appreciated

    I am saying do not worry about how "it" will solve the problem. I am asking how YOU would solve the problem.
    15 84 20 13 68 43
    In reality there are two problems to solve;
    1) find the highest...
  9. Replies
    23
    Views
    1,611

    Re: Rookie Question! Help Appreciated

    Then I would say the next step would be to make the code consider all 5 numbers.
    How would you do it without a computer?
    What steps would you take, specifically. Write down each thing you must do...
  10. Replies
    23
    Views
    1,611

    Re: Rookie Question! Help Appreciated

    Where to go from here... well what are the options? Where is here?
    What does the code do now? What should it do next?
Results 1 to 10 of 10