Question
A certain profesor's class has four big assignments that each count for 25% of your final grade. However, if a student can show a 10%
A certain profesor's class has four big assignments that each count for 25% of your final grade. However, if a student can show a 10% improvement on the final (fourth) over the average of their first three, the professor will count the final score as 100% of the final grade. For example, if a student averaged 75% on the first three, but earned 83% on the final; the final grade would be an 83%. Make sure you understand this example! The student does NOT have to score 10% in total. They only need to show a 10% improvement over their particular average. Write a function to calculate a student's grade based on their 4 scores. This should be answered with a single function
Consider the following sample cases. It probably makes sense to compute these by hand and then test them with your function.
Input | Output |
---|---|
Ex1: 75; Ex2: 75; Ex3: 75; Ex4: 75 | |
Ex1: 75; Ex2: 75; Ex3: 75; Ex4: 83 | |
Ex1: 75; Ex2: 75; Ex3: 75; Ex4: 82 | |
Ex1: 75; Ex2: 85; Ex3: 80; Ex4: 88 | |
Ex1: 75; Ex2: 75; Ex3: 85; Ex4: 85 |
Special Note: we are using the programming language Python.
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