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...
Type: Posts; User: jps
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...
( 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...
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...
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...
Then what is this:
int number1;
int number2;
int number3;
int number4;
int number5;and this:
number1 = input.nextInt();
number2 = input.nextInt();
number3 =...
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...
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...
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...
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...
Where to go from here... well what are the options? Where is here?
What does the code do now? What should it do next?