# Allison Obourn
# CS 115, Autumn 2021
# Lecture 26

# This program prints an intro message describing what the program does,
# promts the user for three quiz scores and then prints out the final
# quiz score (which is always the highest). Finally it outputs the
# overal quiz percentage which is currently always 100%.

# NOTE: this program is incomplete! We will complete it next week.

def main():
    intro()
    # read three scores from the user
    score1 = int(input("Quiz 1 score 1? "))
    score2 = int(input("Quiz 1 score 2? "))
    score3 = int(input("Quiz 1 score 3? ")) 

    # NOTE: we had to catch the returned value in a variable so
    #       we could use it later in our code. 
    best_score = biggest(score1, score2, score3)
    
    print("Your final score for quiz 1 is", best_score)

    print("Your overall quiz percentage is: " + str(100))


# prints out an introductory message explaining to the user what the program
# does. 
def intro():
    print("Enter your quiz scores (three for each quiz) and your")
    print("overall quiz percentage will be printed.")
    print()


# takes three numbers as parameters and returns the biggest of the three
def biggest(score1, score2, score3):
    highest = score1
    
    if score2 > highest:
        highest = score2
    if score3 > highest:
        highest = score3

    return highest
    

        
main()
