Question
Student/Answer Q1 Q2 Q3 Q4 Q5 Result Percent 1 A C A A C 4 80% 2 A D A A C 5 100 %
Student/Answer | Q1 | Q2 | Q3 | Q4 | Q5 | Result | Percent |
1 | A | C | A | A | C | 4 | 80% |
2 | A | D | A | A | C | 5 | 100% |
3 | B | E | B | A | E | 1 | 20% |
A program i java designed to grade multiple choices test for 100 students answering 5 MCQ questions
Assume all the answers are given to you in a two-dimension array, calculate the score for each
student. Given that the answer key is given to you in one dimension array........... i.e: Example of input , the output is the Result for each student and the percentage.
Answer Key:
A | D | A | A | C |
Make appropriate changes only for the above program to consider that the input is given to you from a Text file called d:\MCQ.txt, the answer key still in the one dimension array.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started