Help me on my homework!

I'm a marketing student and programming is my Achilles heel! I'm desperate for help, If I don't pass this I'll fail programming.

(Please don't answer me with "learn, practice, [link page to practice]", I'm horrible in math, much worst in programming. Here is my problem:

IMPORTANT DETAILS:

1. Only use <stdio.h>
2. MUST use 2 dimentional array AND do-while loop (only these if possible/make it basic.)

store the following nos. into two dimensional arrays

4 -3 4 2
-2 1 4 3
5 3 6 -4
3 2 7 5
2 2 -9 6

User can choose whether the output is all even or odd nos.

Sample Output:

--> SCENARIO 1 <--

Display all data

4 -3 4 2
-2 1 4 3
5 3 6 -4
3 2 7 5
2 2 -9 6

Choices:
press 1 to display all even nos.
press 2 to display all odd nos.

choice: 1

4 4 2
-2 4
6 -4
2
2 2 6

--> SCENARIO 2 <--

Display all data

4 -3 4 2
-2 1 4 3
5 3 6 -4
3 2 7 5
2 2 -9 6

Choices:
press 1 to display all even nos.
press 2 to display all odd nos.

choice: 2

-3
1 3
5 3
3 7 5
-9

I need it answered in 15hrs or I face the programming gallows...
You need only understand what even and odd are maths-wise for this. Here are some hints:
1
2
3
4
5
6
7
8
9
10
11
12
13
 
int array[4][5] //This is a multidimensional array. It contains 4 sets of 5 elements.

//This is how to split up odds and evens: 

if(n % 2 == 0)
{
//Then it is even. 
}
else
{
//Then it is odd
}


Do you understand how to do user input/output?


that helps alot, but can you also tell me how to let the user pick if they want odd/even? and implementing those choices on the result
Topic archived. No new replies allowed.