Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Solve it in MATLAB please. Dosya C/Users/LEGION/Downloads/2021HW7.pdf 1 / 2 100% -- 1. (50 points) Remember the function grade from Lab Session-12. In this HW

image text in transcribedSolve it in MATLAB please.

Dosya C/Users/LEGION/Downloads/2021HW7.pdf 1 / 2 100% -- 1. (50 points) Remember the function grade from Lab Session-12. In this HW problem, you are supposed to improve that function as described below. Create a new function named grade2 to determine test grades based on the score and assuming a single input into the function. The grades should be based on the following criteria: Grade S 90 19:11:00 180 1990 204 80 C D 60 70 E 14180 a) You should improve your function such that it returns error messages for both of the following cases: when the attempts to call the function with a vector or a matrix instead of a scalar, - when the user attempts to call the function with a score which is out of the 0-100 range. Use the function error for this purpose. b) Also, draw a flowchart of your program

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

Database Principles Programming And Performance

Authors: Patrick O'Neil

1st Edition

1558603921, 978-1558603929

More Books

Students also viewed these Databases questions

Question

How is the moving average method similar to exponential smoothing?

Answered: 1 week ago