Question: Using MATLAB 5. You want to automate grading the multiple choice part of an exam, and the answers are in a file. Open the open

Using MATLAB 5. You want to automate grading the multiple choice partUsing MATLAB

5. You want to automate grading the multiple choice part of an exam, and the answers are in a file. Open the open file test3_Answers.txt, using the file handle inFile. Populate an array called test3Answers which will contain the correct answers to the test questions. You may assume one answer on each line of the input file. Next, determine the number of questions student1 has gotten correct, and whether or not he/she passed the exam. A passing grade is any score 21 or greater (60%). student! = {A','B','D,,'D', D,,'C','c','A','B,,'B','C','A,, . . ., A','A, D'); index = 1; %index used to populate test3Answers test3Answers = { }; correct0; while feof(inFile) oneGrade fgetl(in File); %populate test3Answers array

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!