Question
To do: create python file that has a global gradebook dict, which stores a running total for each supplied grade type; and two functions to
To do: create python file that has a global gradebook dict, which stores a running total for each supplied grade type; and two functions to interact with that dict: assignment(kind, grade, weight). The kind will be a string, and will indicate which group of assignments this one belongs to. It might be either a known kind or a new one. The grade will be a number between 0 and 100.
Part Two: Name of fxn must be total(proportions). Given a dict with keys as types of assignments and values as ratios of overall grade this type applies to, return the cumulative grade so far based on this set of proportions. You may assume the values in the dict total to 1.0. The given proportions may include assignment types that have never been sent to assignments; return the grade assuming the student got 0 in those missing assignments. The given proportions may fail to include some assignment types that were sent to assignments; those assignment types do not contribute to the returned grade.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started