well....my teacher ask me to create a program that reads set of integer's and then finds and prints the sum of the even and odd integers....could someone help me in dis program...

and can u make it simple plss....ill be happy if u would...

When you say reads do you mean reading from file or just a mistype? I think you mean read from an array. This can be done by checking each number in the array and seeing if they are devisable by 2. If they are then it is even other wise its an odd number.

When you say reads do you mean reading from file or just a mistype? I think you mean read from an array. This can be done by checking each number in the array and seeing if they are devisable by 2. If they are then it is even other wise its an odd number.

The best tip i have got from my Java lecturer is,
when you have a problem, try to think a non-programming solution first.
for example:
there ia a set of number on a piece of paper, how do you calculate the total of odd numbers and even numbers?
you have to go through each number to check whether it is odd or even first

Need some help with this Array. I am trying to get the sum of the even numbers and the sum of the odd numbers using a for each loop. I know the answers to what I am trying to achive are sum of even = 84 and the sum of ...

When I execute this progammatically, I get a table with row heights much larger than when I do this manually.

Note : Sel is the Word.Selection object and the Clipboard contains an Excel Table.

public void AddClipboard()
{
Sel.PasteExcelTable(false,false, false);
var t = Sel.Tables[Sel.Tables.Count];
t.AutoFitBehavior(Word.WdAutoFitBehavior.wdAutoFitContent);
}

I have a 2d matrix with dimension (3, n) called A, I want to calculate the normalization and cross product of two arrays (b,z) (see the code please) for each column (for the first column, then the second one and so on).
the function that I created to find the ...