Question: Java program to grade multiple choice test for multiple students. The program should grade individual exams, record the questions missed, total the questions missed for
Java program to grade multiple choice test for multiple students. The program should grade individual exams, record the questions missed, total the questions missed for each student, and calculate the grade for the student based on the number of questions, each being the same value.
The program must also determine how many times each question was missed by the students. It will also produce the percentage of misses. Finally, it should show the number of students graded and the class average.
HOW PROGRAM WORKS:
The program will ask for file name from the command line. The first line in the file contains the number of questions on the exam, the second the answer key, and all following lines contain the student ids and responses to the questions.
(*** Beware!! The data files vary in number of questions, and number of students. Your program must be flexible! The header will need to print any number of questions and a variable length number of =. You may assume no more than 25 questions but any number of students. ***)
Program structure should have a class called CStudent that holds the student ID, and their responses to the test questions, number of misses, list of missed questions and their calculated score on the test.
A second class called CTest shall contain the answer key, class average, number of students being processed, number of questions on the test, number of times each question is missed during a grading run. Class CTest contains an array of Student objects, sized to MAXSTU = 100.
Declares num_ques to be static int. Define a static function of CTest that for accessing the num_ques.
THIS IS WHAT TEXT FILE LOOKS LIKE:

And HERE IS THE OUTPUT


Please mark as needs more info and I'll send the code I have so far
312223221222312 444444444444434 2434334433433433 4212112211211211 3222222222222212 1555555555555554 1444444444444444 2222322422232222 4222122212212221 2333333333433333 1353555355355555 2444444444444444 3434344433434433 5123333332333333 4111211121111322 41121112-12-2111 3221222122122222 1567890565648872 456789454545761 1345678223424654 234567222232341
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
