Thread: Need Help Can anyone explain what this means

1. 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 +....

2. You are asking about pseudo code? If so,

Java 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];
}```
may help you :)

3. 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

4. What does index 1 and index 2 stands for? i still dun understand....
Please enlighten me thanks.

5. Eranga can please reply me thanks i need ur help badly

6. 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
Your problem is found in just about every beginning book on Java. Where is your textbook? What does it say? Stop asking others to do your homework for you. Stop being lazy and read your textbook. Errangs assisted you- I think it's now up to you to figure it out from there. If you're still stuck- post your code and be specific about your updated issues. Otherwise - read your book.

Eranga can please reply me thanks i need ur help badly
You need to be more patient than that. Most of us are here purely on a voluntary basis. We don't get paid for helping you- we do it because we want to. Understand that.

7. I am sorry i understand sorry to keep asking question i am not looking for direct answer just wanna know how it works but i guess i should do my own research sorry about it.

Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•