Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Function name: grade_counter Parameters: list of grades (list of ints), amount of extra credit (int), letter grade (string) Returns: number of students that got that
Function name: grade_counter Parameters: list of grades (list of ints), amount of extra credit (int), letter grade (string) Returns: number of students that got that letter grade after extra credit (int) Description: Write a function that takes a list of student grades in a class, an integer amount of extra credit to be applied to each student's grade, and a letter grade ("A", "B", "C", "D", or "F"). The letter grade parameter will always be one capital letter from the list below. Return the number of students that made the given letter grade after extra credit is applied to their grade Each letter grade represents the following range of scores A: 90 - 105 B: 80 - 89 C: 70 79 D: 60 69 F: 0-59 Note: A grade after extra credit will never be above 105, or below 0 >>>grade list = 70, 98, 88, 60, 87, 91, 10 >>>extracredit 2 >>> letter grade = A" >>> test 1-grade_counter(grade_list, extra_ credit, letter_grade) >>> print(test 1) 4 >>>grade list2 [65, 71, 75, 80, 90, 100, 82] >>>extra credit2 5 >>> letter grade2'" >>test 2 grade counter(grade list2, extra credit2, letter grade2) >>> print(test 2) 2
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