Question: please urgent Consider the following function: function [g]= grade( x) if 59 Statement 1 Statement 2 disp (Moreover, the student is on the honor list!')

please urgent
please urgent Consider the following function: function [g]= grade( x) if 59

Consider the following function: function [g]= grade( x) if 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 In) 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 (x84) b. if (grade >84) c. if (x is greater than 84) d. if (x=84) 3. How many "end" is are needed for the above function? a 3 b. 1 c0 d4 4. If we remove [g]=" from the first line nothing changes a True

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!