Question
Write a function NominalGrade(Ascore, Escore) that takes a student's weighted assignment score Ascore, and exams score, Escore, as parameters, and returns a grade score based
Write a function NominalGrade(Ascore, Escore) that takes a student's weighted assignment score Ascore, and exams score, Escore, as parameters, and returns a grade score based on equal weight to both. The scores are float values out of 100. The score to letters grade policy is similar to that being followed in this class. However, the function returns an integer grade score representing the corresponding nominal grade:
Score Range Grade Score Letter Grade86 or higher 4 A74 to below 86 3 B62 to below 74 2 C50 to below 62 1 D0 to below 50 0 F
Now write a function TrueGrade(Ascore, Escore) that additionally takes into account the following rule posted on the class page and returns the actual letter grade.
"The Final grade you receive will not be more than 1 full grade higher than your EXAMS grade"
TrueGrade() should call NominalGrade()
Example 1: NominalGrade(96, 84) should return 4.
TrueGrade(96, 84) should return 'A'.
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