Suppose array quiz contains the answers to five true and false wuestions. The first row [0] contains the corrext answers to the array. Each row further contains a particular studens responses to the five questions on the quiz.
I must write down the necessary instructions to calculate and output each students score. How do I compare the arrays [1] and so forth to [0]?
This is what I think:
Const int NUMBEROFROWS = 6;
Const int NUMBEROFQUESTIONS = 5;
Char quiz[NUMBEROFROWS][NUMBEROFQUESTIONS]
Well I'm not very gud in arrays so don't judge me, in array[0] is the right answers, so say in array [0] {'T', 'T', 'F', 'F', 'T'}, then you in the other arrays student answers should ne T or F answers, and if it is correct according to array[0], every answer u get a point if it is right or no point if answer is wrong.
Because the first ((zero) row is reserved for correct answers as I have understood. So the number of scores will be one less than the total number of rows in quiz.
So if I have to output the score for student 1, would cout << "Student 1: score "<< score << endl, suffice? Or is it wrong? Or do u have to say << score[1] for the 1st student?