Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("Midterm 1:")
- weight_1=int(input("Weight 0-100?"))
- score_earned=int(input("Score earned?"))
- score_shift=int(input("Were scores shifted (1=yes 2=no)?"))
- if (score_shift==1):
- shift_amount=int(input("What was the shift amount?"))
- score_earned=int(shift_amount)+int(score_earned)
- if (score_earned >100):
- score_earned=100
- print("Total points = "+str(score_earned)+str("/100"))
- weighted_score=int((score_earned/100)*weight_1)
- print("Your weighted score = "+str(weighted_score)+"/"+str(weight_1))
Add Comment
Please, Sign In to add comment