Design
Layout
References
Mailings Review
View
Help
Be careful, files from the Internet can contain viruses. Unless you need to edit, it's safer to stay in Protected View. Enable Editing.
Problem 2: [10 marks] Grade a Test (filename: GradeATest.cpp)
Write a program that creates a 2D array to store the answers for 8 students from a quiz with 10 questions and a one-dimensional array to store the answer keys as given below. The program counts and displays the score of each student.
Students' Answers to the Questions: 0123456789
Student 1: BACCDEEAD
Student 2: DBABCAEEAD
Student 3: DDACBEEAD
Student 4: BAEDCEEAD
Student 5: BDCCDEEAD
Student 6: B CCDEEAD
Student 7: BBACCDEEAD
Student 8: BECCDEEAD
Key to the Questions: 0123456789
Answer Key: PEDCCnAERG