# Allison Obourn
# CS 115, Autumn 2021
# Lecture 5

# This program prompts the user for two project scores and the points possible
# for each of those projects. It also prompts the user for the percentage of the
# grade of the project. It then outputs the total points earned by the student,
# the total points possible fort those projects, the percentage they earned
# and the amount this will contribut to their grade.

# NOTE: This program is incomplete and does not work correctly! We will finish
#       it in class tomorrow.

def main():
    first_score = int(input("What is the first project score? "))
    first_possible = int(input("How many points are possible on the first " +
                               "project? "))
    print()

    second_score = int(input("What is the second project score? "))
    second_possible = int(input("How many points are possible on the second " +
                                "project? "))
    print()

    percentage = float(input("What percentage of the grade are projects worth? "))
    print()

    # printing out our variables to make sure the store the right things
    print(first_score, first_possible, second_score, second_possible,
          percentage)

    total_earned = first_score + second_score
    total_possible = first_possible + second_possible
    earned = first_score + second_score / first_possible + second_possible
    print("Total points earned: " + str(total_earned))
    print("Total points possible: " + str(total_possible))
    print("Total percentage earned: " + str(total_earned) + "/" +
          str(total_possible) + " = 0.8 = 80%") 
    print("Total grade points earned: 36")


main()
