# How to write a matlab program for the following question? Q: 1.Topic:"Automatic Quiz Grading" 2.T...

how to write a matlab program for the following question?

Q:

2.The concept is to calculate the student's score in the way of computer scoring.

5. The number of questions are 20

6. all pairs Get +1 point, deduct one option for 1 point

Assuming that the student attempt each and every question

And let's assume if the student falls in the following category the grade is given as:

20-15 'A'

14-10 'B'

9-5 'C'

Below 4 'D'

Assuming we have the files

MATLAB code:

a1 = strsplit(data1);

a2 = strsplit(data2);

correct=0;

total = 20;

for i = 1 : length(a1)

if a1(i) == a2(j)

correct = correct+1;

end

end

incorrect = 20 - correct;

total_score = correct*(1) + incorrect*(-1);

if total_score >=15

disp('A')

elseif total_score >=10 && total_score <=14

disp('B')

elseif total_score >=5 && total_score <=9

disp('C')

else

disp('D')

end

##### Add Answer of: How to write a matlab program for the following question? Q: 1.Topic:"Automatic Quiz Grading" 2.T...
More Homework Help Questions Additional questions in this topic.

• #### from where i will get an essay on the topic "the complete development of students is only possible by strict discipline " write for or against the topic

Need Online Homework Help?