Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

DO IN MATLAB: A matrix named Marks has three columns ( could have any number of rows ) . The first column stores the student

DO IN MATLAB: A matrix named Marks has three columns (could have any number of rows). The first column stores the student ID, the second column stores the unit ID and the third column stores the grade (all the value in Marks are numeric).For example,Marks =[12341124140671274814471076153811641403611342154140771534193418069................................................]Note: the above values are just an example. Marks matrix can have any number of rows and different values, but with the above format.Write a function that takes in such a matrix and a unit code as the inputs and calculates the percentage of students who passed the given unit. A student is passed if the grade is 50 or above. The output of the function is the calculated pass percentage. The Pass percentage is defined as:Pass percentage =(number of passed students)/(total number of students)*100If there are no students who had taken the given unit, then the output of the function should be 0.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions