Hello,

I'm trying to create a program for a multiple choice test. I have 12 students, and I have the answers, all I need is to learn which student chose how many correct and wrong answers and left how many empty.

All I need is something like this

Students Correct Wrong Empty (0 is empty, 1 is A , 2 is B and so forth)
1 5 4 3
2 3 8 1
3 8 1 3
4 2
5
6
7
8
9
10
11
12

int[][]answers = {{3,4,2,5,0,2,1,3,2,4},{0,0,2,1,5,4,1,2,3,1},{3,3,2,5,4,1,2,5,0,3},{3,4,4,5,3,5,4,0,3,1},{3,4,2,5,4,3,1,2,3,2},{1,3,4,3,2,5,4,2,1,0},{2,0,3,4,2,0,1,5,4,2},{3,4,5,3,3,2,4,1,2,5},{3,5,3,5,1,2,3,4,5,6,0},{3,4,5,3,4,3,0,0,0,0},{3,4,5,2,1,2,3,2,5,3},{3,2,1,5,5,3,2,5,2,4}};

        int[] correctA = {3,4,2,5,4,3,1,2,3,1};

        int[] students = {1,2,3,4,5,6,7,8,9,10,11,12};

Im trying to wrap my head around this, maybe explain it a little better,

What is it you accually want? and what have you tried?

OK, looks like the answers array is [student][answers]. The correctA array seems clear enough. The student array seems pointless. Perhaps you can explain?

Before writing a single line of code get some paper and a pen and work out the correct output for the first two or three students. Remember what you had to do to get that output. Then, and not before, think about writing code to do exactly the same steps that you had to do.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.