Question 3: Write a function with the following signature: grade_calc(grades_in,
ID: 638410 • Letter: Q
Question
Question 3: Write a function with the following signature: grade_calc(grades_in, to_drop): The function accepts a list grades_in containing integer grades, drops the to_drop lowest grades (so, for to drop equal to 2, the function should drop the 2 lowest grades), calculates the average of the grades left, and returns the letter grade this average corresponds to according to the letter grade scale for this course. For example: >>> grade_calc([100, 90, 80, 95), 2) 'A' Present a short (no more than a couple of sentences) description of your solution approach. Then show your source code and the interactive shell outout of three examole runs.Explanation / Answer
_list = [] def calc_average(total): return total / 5 def determine_grade(grade): if grade >= 90 and grade = 80 and grade = 70 and grade = 60 and grade 5: break print('Average grade is: ', avg) print('Letter grades for entered grades are: ', abc_grade)Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.