Question
I need to create the program in C++. I have created a 2D array but can't figure out how to compare it. Like to show
I need to create the program in C++. I have created a 2D array but can't figure out how to compare it. Like to show which student had(by count) and how many True/False answers. Please see the code below: Thanks!
#include
int main() { const int ROWSIZE = 9; const int COLUMSIZE = 10;
string matrix[ROWSIZE][COLUMSIZE] = { {"A", "B", "A", "C", "C", "D", "E", "E", "A", "D" }, {"D", "B", "A", "B", "C", "A", "E", "E", "A", "D"}, {"E", "D", "D", "A", "C", "B", "E", "E", "A", "D"}, {"C", "B", "A", "E", "D", "C", "E", "E", "A", "D"}, {"A", "B", "D", "C", "C", "D", "E", "E", "A", "D"}, {"B", "B", "E", "C", "C", "D", "E", "E", "A", "D"}, {"B", "B", "A", "C", "C", "D", "E", "E", "A", "D"}, {"E", "B", "E", "C", "C", "D", "E", "E", "A", "D"} };
string keys[] = { "D", "B", "D", "C", "C", "D", "A", "E", "A", "D" };
for (int i = 0; i
if (matrix[i][j] == keys[j]) j++; cout
} cout Objective: write a program that grades multiple-choice test. Students' Answers to the Questions: 0 1 2 3 4 5 6 7 8 9 Student o Student 1 Student 2 Student 3 Student 4 Student 5 Student 6 Student 7 A B A ccDE E A D DBABCAE E AD EDDA CBE EAD CBAE DCE EAD ABD CCDE E A D E ccDE E A D BBA ccDE E A D EBECCDE EAD Key to the Questions: 0 1 2 3 4 5 6 7 8 9 Key DBDCCDA E A D
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