Question
Throughout the semester you have taken three midterms in your science class, however your instructor could not decide how to assign the students course grades.
Throughout the semester you have taken three midterms in your science class, however your instructor could not decide how to assign the students course grades. She is considering two different methods and she wants to choose the method which will output the higher course grade for the students. Open ClassGrade.py and help her to design a program through the following steps:
-
First method she is considering is to drop the minimum midterm grade and calculate the average grade using the remaining two midterm grades (each will now weigh 50%). Implement drop_minimum(grade1, grade2, grade3) accordingly and return the average grade. You cannot use the built-in min function.
-
As the exams tend to become harder, second method she is considering is to adjust the weights of the exams such that midterm1 will have a weight of 45%, midterm2 will have a weight of 30% and midterm3 will have a weight of 25%. Implement change_weights(grade1, grade2, grade3) accordingly and return the resulting grade.
Now it is time to decide which method is better for the students. Implement compare_results(average1, average2) such that it will return the average which is higher than the other.
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