Question: The grading scheme for an intro physics course is HW: 1 5 % Exams: 5 0 % Labs: 2 0 % Final Project: 1 5
The grading scheme for an intro physics course is
HW: Exams: Labs: Final Project:
This grading scheme and the course grades for every student are defined as variables in the beginning of the provided script template below. The matrix holds the student grades. Each row represents one of the grading bins eg Exams and each column represents a single student's scores in all bins. The first row represents the HW bin, the second the Exams bin, the third the Labs
bin, and the fourth the Final Project bin. Each bin has a maximum total of points.
Add lines of code that accomplish the following tasks:
Create a column vector for which the first element is the maximum
unweighted HW score across all students, the second element is the maximum unweighted Labs score across all students, etc. Store this vector to a variable called maxAll.Create a column vector for which the first element is the minimum
unweighted HW score across all students, the second element is the minimum unweighted Labs score across all students, etc. Store this vector to a variable called minAll.Create a row vector for which the first element is the maximum unweighted score across all bins for student the second element is the maximum unweighted score across all bins for student etc. Store this vector to a variable called maxS.Create a row vector for which the first element is the minimum unweighted score across all bins for student the second element is the minimum unweighted score across all bins for student etc. Store this vector to a variable called minS.Combine the bin weights w and the unweighted student grades G to create a variable that stores the weighted student grades, still separated by bin. Call this varaible WSum
Wto create a row vector where each column represents a student's total percentage in the course. Call this variable grades.Determine the maximum weighted grade in the course among all the students. Store the answer to a variable called maxGrade.Determine the minimum weighted grade in the course among all the students. Store the answer to a variable called minGrade.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
