Question: Problem Description: Programming CMPS 280 Write a program that reads from the keyboard the number of questions for a multiple choice test, a list of
Problem Description:
Programming
CMPS 280
Write a program that reads from the keyboard the number of questions for a multiple choice test, a list of keys for the correct answers, the number of students and a list of students answers. Each row of the list records a students answers to the questions. Each column records answers to a question. The program will then displays the average score and a question with the highest number of correct answers. (If there are more than one questions with the highest number of correct answers, display the first one counting from left to right.)
Note
1. To read a character in, you can use: next().charAt(0)
2. Run and make sure that your program produces exactly the same output for each of the sample
inputs listed below.
3. You can use single dimensional arrays. (If you want to use multi-dimensional arrays, review the
lecture notes for Chapter 8 on Moodle.)
Sample Input 1: 5
AB C D E
2
AC B D E C B C DE
Sample Output 1:
70.0% 3
Sample Input 2:
10
B B B DA E B E B E 10
E A E B B B E E AE C AE B B DD C E D DE C DC D A C B D B B C DB D B D DE EED A ED EC A A E C A AB C D C C D AA E D A DB B C B DB A A E B A DB A DB E B C E E C D A E E D E A B A AC E
Sample Output 2:
18.0% 1
Sample Input 3:
10
B DC E AD E A C B
10
E B E C A A DB B B AB A D AD A AD E AC B A C D DD C B B B AB B C E AA D B C AA D AC C D C B B AC B A D B DD DC A D AE E A DB DA A DB D C D DD DD A B AE B AB A DD A E C C E C A D
Sample Output 3:
24.0% 4
Sample Input 4: 5
AA C E C
3
AA C E C AA C E C AA C E C
100.0% 0
Sample Input 5: 5
B AD C A
2
C AD C A B AD B A
Sample Output 5:
80.0% 1
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
