Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribedimage text in transcribed

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 (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 c. 0 d. 4 4. If we remove "Ig="from the first line, nothing changes. a. True b. False c. True d False The output of the command: t=linspace(1, 10, 100); y=exp(t/5).*cos(t). *sqrt(t-1); plot(t,y) is the graph of the function: f(t) = evt 1 cost f(t) = e(Vt - 1) cost = - the above the above Error. f(t) = et (Vt 1)cost

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_2

Step: 3

blur-text-image_3

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