Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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
image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

The Manga Guide To Databases

Authors: Mana Takahashi, Shoko Azuma, Co Ltd Trend

1st Edition

1593271905, 978-1593271909

More Books

Students also viewed these Databases questions