Grading Software

Here is a python program where you can input test grades and receive your overall score.

eight = int(raw_input("What is your weight")) ScoreEarned = int(raw_input("What is your score")) Extracredit = int(raw_input("Were scores shifted")) if Extracredit == 1: print("Your score was shifted") if Extracredit == 2: print("Your score was not shifted") totalpoints = (ScoreEarned) print("totalpoints = " + str(ScoreEarned) + " / 100") x = 100.0/ Weight weightedscore1 = ScoreEarned / x print(weightedscore1) print("This software will read your final test score") print(" Final:") Weight = int(raw_input("weight(1-100)?" )) ScoreEarned = int(raw_input("Score Earned?" )) Scoreshifted = int(raw_input("Were scores shifted (1=yes, 2= no)? ")) if Scoreshifted == 1: Amount= int(raw_input("By how much were they shifted?" )) totalpoints = ScoreEarned print("totalpoints= " + str(ScoreEarned) + " / 100") x = 100.0/Weight print(x) Weightedscore2 = ScoreEarned / x print(Weightedscore2) print("This software will read your homework grade") print("Homework:") Weight = int(raw_input("Weight(1-100)?")) Numofassignments = int(raw_input("Number of assignments?")) total = 0 totalpoints = 0 for i in range(1, Numofassignments+1, 1): Score = int(raw_input("What was your score for this assignment ?" + str(i))) total = total + Score Maxpoints = int(raw_input("What was the max score for this assignment ?" + str(i))) totalpoints = totalpoints + Maxpoints print("total points = " + str(total) + " / " + str(totalpoints)) percent = total / totalpoints wScore = percent * Weight print("Weightedscore3 = " + str(wScore) + " / " + str(Weight)) OverallPercentage = weightedscore1 + Weightedscore2 + wScore print(OverallPercentage)
1