Question: our first task is to write a function callled Get _ Final _ Perc that has the following three inputs: HW _ weight: The weight

our first task is to write a function callled "Get_Final_Perc" that has the following three inputs:
HW_weight: The weight towards the final grade of the score on all homeworks.
Exam_weight: The weight towards the final grade of the midterm and final. The midterm and final exams are weighted equally
Part_weight: The weight towards the final grade of the score on all participation scores.
IMPORTANT: For the HW and participation categories, the final percentage is (# points earned)/(# of points possible). So, for example, if there were two HWs and you got 10/10 and 7/8, your final percentage on HW would be 17/18.
Inside of this function, you should
Read in the data set into a dataframe called df_grades.
Add to df_grades a column labeled "Final_perc", which gives the final percentage (this should be between 0 and 100 for each student) achieved by each student given the specified weighting scheme that is given as input. Note that it may be helpful to add other columns along the way; this is okay.
A few other things that you must keep in mind when writing this function
You should only consider students who have a score for all assignments (you can delete the rows corresponding to students with missing scores for any assignment). Hint: Recall that blanks in a csv are automatically read in as NAs.
You may assume that for each assignment, there was at least one student who received 100% on the assignment. Furthermore, there was no extra credit on any assignment. Hint: this is how you can figure out the max score on each assignment.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!