Question: please urgent Consider the following function: function [g]=grade( x) if x>59 Statement 1 Statement 2 disp (Moreover, the student is on the honor list!) else
Consider the following function: function [g]=grade( x) if x>59 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 1 be? a. fprintf ("The student's grade is %d. He has passed the exam. In 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 (grade84) c. if (x is greater than 84) d. if (x=84) 3. How many "end" is are needed for the above function? 3 61 c. 0 d 4 4. If we remove [ 3 ]= from the first line nothing changes a True a
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
