# Need Help Can anyone explain what this means

• 02-14-2008, 05:56 AM
Clemenza1983
Need Help Can anyone explain what this means
I have difficulty understanding this how should i layout?

In this Task, you should design the program logic using pseudo codes:

- Read integer data from keyboard and store the data in an array.
- List all the even numbers and the total of even number in the array.
- Show the total value of all the numbers in the array.
- Show the numbers that are multiple of 3.
- Show the toal value of every alternate numbers in the array, starting from first number, i.e. the first number + the third data + the fifth data +....
• 02-14-2008, 12:10 PM
Eranga

Code:

``` Get user inputs, specified number of integers. int userInputs[number_of_integers]; int numberTotal = 0; int evenNumberTotal = 0; int patternTotal = 0; while(less than iterations of number_of_integers on each) { // Total of all numbers of the array numberTotal = numberTotal + userInputs[iterationIndexOne]; // Find the even number and there total if(userInputs[iterationIndexOne] mod 2 == 0) { display elemnt of userInputs[iterationIndexOne]; evenNumberTotal = evenNumberTotal + userInputs[iterationIndexOne]; } display total of even numbers evenNumberTotal; // Find the mutiple of 3 if(userInputs[iterationIndexOne] mod 3 == 0) { display elemnt of userInputs[iterationIndexOne]; } } while(less than iterations of number_of_integers by each) { patternTotal = patternTotal + userInputs[iterationIndexTwo]; }```
• 02-14-2008, 02:25 PM
Clemenza1983
Hi thanks but seriously i haven't get to know what is patterntotal. I am only a beginner in java now u show me all these i hardly understand i need explanation not direct answer but u been of great help thanks dude really appreciate it but now i still need to know why and how... haiz
• 02-14-2008, 04:50 PM
Clemenza1983
What does index 1 and index 2 stands for? i still dun understand....
• 02-15-2008, 02:04 PM
Clemenza1983
• 02-16-2008, 04:11 AM
CaptainMorgan
Quote:

Originally Posted by Clemenza1983
Hi thanks but seriously i haven't get to know what is patterntotal. I am only a beginner in java now u show me all these i hardly understand i need explanation not direct answer but u been of great help thanks dude really appreciate it but now i still need to know why and how... haiz