Enter your solution to this question on Grader. 50% of your…
Enter your solution to this question on Grader. 50% of your grade will be based on MATLAB Grader scoring and 50% will be based on the format of your output (manually graded after the quiz – it will appear as a ‘concepts’ score however in your grade). In this problem, you are given a structure called studentRec that has three fields called name, ID, and pct corresponding to a student’s name, student ID, and percentage score on a test. You do not know beforehand how many elements are in studentRec so you will need to use a built-in function to determine that. name is a character string, ID is an integer, and pct is a double. You must add a new field to the structure called grade (which will be a character) and use iteration and selection to assign it a value for each element in studentRec based on the percentage score and also calculate the average, minimum, and maximum percentage scores for the entire class (as independent variables i.e. not in studentRec). The grade for each element in studentRec should be computed according to the following: % score Grade >= 90 A >= 80 and < 90 B >= 70 and < 80 C >= 60 and < 70 D < 60 F Finally, you should print out the formatted table and results below (again using iteration and formatting the output with fprintf). Note that the data below is just for illustrative purposes. The data you get could be different from this.