Saturday, October 27, 2012

Java Exercise #35: Grading Multiple Choice Test

This exercise is to write a program that grades multiple choice test. The focus of this program is to use multi-dimensional arrays

Exercise: Write a program the grades the multiple choice test as below.


            Students' Answers to the Questions 
            0  1  2  3  4  5  6  7  8  9
Student 0 : A  B  A  C  C  D  E  E  A  D
Student 1 : D  B  A  B  C  A  E  E  A  D
Student 2 : E  D  D  A  C  B  E  E  A  D
Student 3 : C  B  A  E  C  D  E  E  A  D
Student 4 : A  B  D  C  C  D  E  E  A  D
Student 5 : B  B  E  C  C  D  E  E  A  D
Student 6 : B  B  A  C  C  D  E  E  A  D
Student 7 : E  B  E  C  C  D  E  E  A  D

             Key to the Questions
             0   1   2   3   4   5   6   7   8   9
    Key:     D   B   D   C   C   D   A   E   A   D

########### OUTPUT #################

For student 0's correct count is 7
For student 1's correct count is 6
For student 2's correct count is 5
For student 3's correct count is 6
For student 4's correct count is 8
For student 5's correct count is 7
For student 6's correct count is 7
For student 7's correct count is 7



Download Code: Grade Exam

2 comments: