#Uncomment the functions to debug them!

################# Problem 1 #########################
'''

def computeIntAverage(x, y, z):
    sum = x + y + z
    count = 3
    return sum // count
avg = computeIntAverage(5, "6", 7)
assert(avg == 6)

'''
################# Problem 2 #########################
'''

def sayHelloOrGoodbye(leaving, name):
    if leaving == True:
        return "Hello " + name
    else:
        return "Goodbye "+name+" and have a great day!

assert(sayHelloOrGoodbye(True, "Ritika") == "Goodbye Ritika and have a great day!")
assert(sayHelloOrGoodbye(False, "Vy") == "Hello Vy")

'''
################# Problem 3 #########################
'''

import math

def circleArea(x0, y0, x1, y1):
    minRad = x_1 - x0 / 2
    maxRad = y1 - y0 / 2
    area = math.pi * minRad * maxRad
    return area

assert(math.isclose(circleArea(0, 0, 10, 20), 50 * math.pi))
assert(math.isclose(circleArea(100, 100, 300, 300), 10_000 * math.pi))
assert(math.isclose(circleArea(15, 10, 40, 32), 12.5 * 11 * math.pi))

'''
################# Functions Practice #########################

def studentGrade(numPage, studentID):
    pass
