Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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'.

image text in transcribed
\f

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Financial management theory and practice

Authors: Eugene F. Brigham and Michael C. Ehrhardt

12th Edition

978-0030243998, 30243998, 324422695, 978-0324422696

Students also viewed these Programming questions

Question

Which amendment to the US constitution abolished slavery?

Answered: 1 week ago

Question

What was the primary goal of the woman suffrage movement?

Answered: 1 week ago

Question

What event led the United States to enter world war II?

Answered: 1 week ago