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 "GetFinalPerc" that has the following three inputs:
HWweight: The weight towards the final grade of the score on all homeworks.
Examweight: The weight towards the final grade of the midterm and final. The midterm and final exams are weighted equally
Partweight: 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 and your final percentage on HW would be
Inside of this function, you should
Read in the data set into a dataframe called dfgrades.
Add to dfgrades a column labeled "Finalperc", which gives the final percentage this should be between and 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 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
