Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Hello I need help to modify my python code: As grading policy, I NEED TO DROP THE LOWEST GRADE OF TEST1, TEST2, OR TEST3. IN

Hello I need help to modify my python code:

As grading policy, I NEED TO DROP THE LOWEST GRADE OF TEST1, TEST2, OR TEST3. IN CASE THE GRADE OF TEST1 IS LOWER THAN THE GRADE ON TEST2 AND TEST 3 DROP IT. THE SAME RULE APPLY FOR TEST2 AND 3

GET THE AVERAGE AFTER REMOVING THE LOWEST GRADE.image text in transcribed

#Letter grade: def letterGrade (avg): if (avg >= 90): LG = "A" elif (avg >= 80): LG = "B" elif (avg >= 70): LG = "C" elif (avg >= 60): LG = "D" else: LG = "F" return LG def Average (Testi, Test2, Test3, Final): return 0.2*Testl + 0.2*Test2 + 0.2*Test3 +0.4 * Final Testl = eval (input ("Enter the score of Testl: ")) Test2 = eval (input ("Enter the score of Test2: ")) Test3 = eval(input ("Enter the score of Test3: ")) Final = eval (input ("Enter the score of Final: ")) FinalAvg=Average (Testi, Test2, Test3, Final) LetGrade = letterGrade (FinalAvg) print("Final Average ", FinalAvg, "Letter grade Let Grade)

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

DB2 Universal Database V7.1 Application Development Certification Guide

Authors: Steve Sanyal, David Martineau, Kevin Gashyna, Michael Kyprianou

1st Edition

0130913677, 978-0130913678

More Books

Students also viewed these Databases questions