Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question - 1 ( 2 5 points ) Create a function to determine test grades based on the soore and assuming a single input into

Question-1(25 points)
Create a function to determine test grades based on the soore and
assuming a single input into the function. The function must give an
error message to the input when the input is greater than 160 and
smaller than 8. The grades should be based on the following criteria:
Question-2(25 points)
This problem requires you to generate temperature conversion tables. Use the following equations,
which describe the relationships between temperatures in degrees Fahrenheit (Tp), Kelvin (Tk).
TK=(Tr+459.67)*59
Generate a table of conversions from Fahrenherit to Kelvin for values from F to 200F. Allow the
user to enter the increments in degrees F between lines. Use disp and fprintf to create a table with a
title, column beadings, and appropriate spacing.
Question-3(25 points)
What will be the output in the command
window if the following matlab program is
exccuted?
a=4;
b=a2a;
c=a2a2a;
d=sqrt(a);
fprintf(%.4.0 square equals %4.0 of ', a, b)
fprintf(%4.0 cube equals %4.0.1w', a, c)
fprintf(The square root of %2.0 is )
Question-4(25 points)
What will be the output in the command window if the following
matlab program is executed?
??1=0,
??2=0,
N III 9
for k=1:N
sum 1= sum 1+k;
if( mod(k,3)=0)
sum 2=??2+k;
end
end
image text in transcribed

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

More Books

Students also viewed these Databases questions

Question

mple 10. Determine d dx S 0 t dt.

Answered: 1 week ago