Define a function that takes two input parameters a vector


Question: Define a function that takes two input parameters, a vector of test scores and a scalar passing grade. The function returns the fraction of passing grades as a number in the range [0 1] (so 0.3 means 30% of the grades were passing. Define the function without using any MATLAB library functions.

Write a main program that prompts the user to enter grades in a loop, ending on a negative number, stores the grades in a vector, and asks the user for a passing grade. Ten pass the grade vector and passing cutoff to the function and print the percent of passing grades.

Make this program using MATLAB programming. Create this program in simple way.

Request for Solution File

Ask an Expert for Answer!!
MATLAB Programming: Define a function that takes two input parameters a vector
Reference No:- TGS0944308

Expected delivery within 24 Hours