Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

grader (avgexams, avgh attendance) Write the function grader that takes two floats, avg.exams and avghw, and one integer attendance as input and returns a bool

image text in transcribedimage text in transcribedimage text in transcribed

grader (avgexams, avgh attendance) Write the function "grader" that takes two floats, avg.exams and avghw, and one integer attendance as input and returns a bool value. The function will check any student's grade and attendance to decide if the student pass the course or fail. If the student pass, the function returns true, otherwise it returns false. These are the criteria to pass the course; The attendance must be greater than 20 to pass. The aaexams and the aa..h must be greater than 70. Either aveexams or aqh must be greater than 85 (or both of them). Example Function Calls ***grader.72, 88,22) > returns True grader (66,100,24) returns False grader (100, 90, 18) returns False HW2 syntax constraints Certain Python syntax will be banned in each homework. The following syntax is banned for HW2: printing, built in functions related to sequences (strings, lists, tuples). Associated keywords are also banned Grading Grading: a problem is correct if all our tests pass Grade by #correct: A+,6, A:5, BA; C:3: D:2 F:0 or 1 Instructions elif n1%2 == 1: return True else: return False def grader (avg_exams, avg_hw, attendance): # ADD CODE HERE return def tupleCounter (t): # ADD CODE HERE return

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

Object Databases The Essentials

Authors: Mary E. S. Loomis

1st Edition

020156341X, 978-0201563412

More Books

Students also viewed these Databases questions

Question

Create a workflow analysis.

Answered: 1 week ago