Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started