It is a bit difficult to understand what you mean but i think you require the contents of an array to be output as odd or even numbers, then show the sum of the odd and the sum of the even numbers and then show the mean average of all values?

Well the working for sum and mean average are basic maths operations so you should not have any problem there, if you are not sure of the syntax to do it then google , also for the odd even section you can use the modulo operator, google that or see the FAQs of this site for determining if a number is odd or even.

I would suggest you post the code you have written so far if you want more answers.

A basic starting point might look like this:

Code:

//initialise some variables...
//..
//....
start loop
getnumber from array, file, whatever.
if is odd number
//store number in oddnum array
//add number to a variable tracking the oddnumbers_total
else
//store number in evennum array
//add number to a variable tracking the evennumbers_total
end loop
calc mean
print out oddnum array
print out evennum array
print odd and even totals
print out mean average