Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

UPDATE: Programming language= JAVA The University of Southern North Dakota at Hoople Testing department needs to write a grading program for multiple choice tests. It

UPDATE: Programming language= JAVA

The University of Southern North Dakota at Hoople Testing department needs to write a grading program for multiple choice tests. It should be capable of grading tests with up to 25 questions and for any number of 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.

The program will accept the input file name from the command line. The first line in the input 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.

The input shown here

20

2 1 1 3 4 4 5 3 2 1 2 4 5 2 1 1 3 4 4 2

12345 2 1 1 1 4 4 3 3 2 1 2 4 5 2 2 1 4 4 4 3

23456 2 1 1 2 3 4 5 3 2 1 2 4 5 2 1 2 3 4 4 1

14567 1 2 1 3 4 4 3 3 2 1 2 4 5 2 2 1 4 4 4 2

15678 2 1 2 3 3 4 5 3 1 1 3 4 5 2 1 1 3 4 4 2

16789 2 1 1 3 4 4 5 3 2 1 2 4 5 2 1 1 3 4 4 2

17890 2 1 1 3 4 4 5 3 2 1 2 4 5 2 2 1 4 4 4 3

12245 1 2 1 3 4 4 3 3 2 1 4 4 5 2 2 1 4 4 4 2

12256 2 1 2 3 3 4 5 3 1 1 2 4 5 2 1 1 3 4 4 2

22345 2 1 1 2 3 4 5 3 2 1 2 4 5 2 1 2 3 4 4 1

22456 1 2 1 3 4 4 3 4 2 1 2 4 5 2 2 1 4 4 4 2

13244 2 1 1 3 3 4 5 3 1 1 3 4 5 2 1 1 3 4 4 2

22458 2 2 1 3 4 4 5 3 2 1 2 4 5 2 1 1 3 4 4 2

23678 2 1 3 3 4 4 5 3 2 1 2 4 5 2 2 4 4 4 4 3

24567 2 1 2 3 3 4 5 3 2 1 2 4 5 1 1 2 3 3 4 1

11412 2 1 2 3 3 4 5 3 1 2 2 4 4 2 1 1 3 4 4 2

produces this output. UPDATE: for some reason this formatted weirdly so I am attaching pictures as to how output will look.

QUESTION 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 2 NUMBER

1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 MISSES

===========================================================

ID GRADE KEY> 2 1 1 3 4 4 5 3 2 1 2 4 5 2 1 1 3 4 4 2

===========================================================

12345 75.00 X X X X X 5

23456 80.00 X X X X 4

14567 75.00 X X X X X 5

15678 80.00 X X X X 4

16789 100.00 0

17890 85.00 X X X 3

12245 70.00 X X X X X X 6

12256 85.00 X X X 3

22345 80.00 X X X X 4

22456 70.00 X X X X X X 6

13244 85.00 X X X 3

22458 95.00 X 1

23678 75.00 X X X X X 5

24567 70.00 X X X X X X 6

11412 75.00 X X X X X 5

QUESTION TIMES PERCENTAGE

NUMBER MISSED MISSED

===================================

1 3 20.00

2 4 26.67

3 5 33.33

4 3 20.00

5 7 46.67

6 0 0.00

7 4 26.67

8 1 6.67

9 4 26.67

10 1 6.67

11 3 20.00

12 0 0.00

13 1 6.67

14 1 6.67

15 6 40.00

16 4 26.67

17 6 40.00

18 1 6.67

19 0 0.00

20 6 40.00

15 EXAMS SCORED

A = 2

B = 6

C = 7

D = 0

F = 0

CLASS AVERAGE 80.00

image text in transcribed

image text in transcribed

5 545403634631565 19--4 18-| 4 14--2 13 5 12 4 09__ 2 03 78788788789777 el 56789565648872 456789454545761 345678223424654 !! D!! 2 3 4 5 6 7 2 2 2 2 3 2 3 4 1

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Concepts International Edition

Authors: David M. Kroenke

6th Edition International Edition

0133098222, 978-0133098228

More Books

Students also viewed these Databases questions