Question: 4 . [ 6 points. ] Structured Output II - Printing Tables. You should turn in one m - file for this problem. Recall that

4.[6 points.] Structured Output II - Printing Tables. You should turn in one m-file for this problem.
Recall that in the lecture, we saw that textread provides a powerful way to read data from file. We saw that we can read all the file grades.txt using
[id test1 test2]= textread(grades.txt,%s %f %f);
which stores the student id, test1 scores, test2 scores into the vectors id, test1, test2. Write a script gradeReport2.m that uses textread to read the data as above and then write a table showing the following information for each student: student id, score for test1, score for test2, average score, and a letter grade (corresponding to the average score) to a file called output.txt . Note that you will be using the function score1 from the previous class to get letter grades.
The output should look like the following, using the indicated format for the real numbers:

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!