Question: Matlab - Computer Science (part 3 is Solved) Consider the following function: function [ 8 ] = grade( x ) if x59 Statement 1 Statement
Matlab - Computer Science (part 3 is Solved)

Consider the following function: function [ 8 ] = grade( x ) if x59 Statement 1 Statement 2 disp('Moreover, the student is on the honor list!') else disp('The student has failed.) 1. If we want to display the grade of the student and say that he has passed the exam, what should Statement l be? a. fprintf ("The student's grade is %d. He has passed the exam n',x) b. fprintf ("The student's grade is %d. He has passed the exam, ") c. disp('The student's grade is x. He has passed the exam.) d. disp ("The student's grade is %x. He has passed the exam.',x) 2. For the dean's honor list, the grade needs to be greater than 84. Therefore, Statement 2 is: a. if (x>84) b. if (grade >84) c. if (x is greater than 84) dif(x=84) How many "end" is/are needed for the above function? a. 3 b. 1 c. O d. 4 4. If we remove Tg =" from the first line, nothing changes. a. True b. False c. True d. False Isolved
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
