Guest User

Untitled

a guest
Jun 18th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. print("Midterm 1:")
  2. weight_1=int(input("Weight 0-100?"))
  3. score_earned=int(input("Score earned?"))
  4. score_shift=int(input("Were scores shifted (1=yes 2=no)?"))
  5. if (score_shift==1):
  6. shift_amount=int(input("What was the shift amount?"))
  7. score_earned=int(shift_amount)+int(score_earned)
  8. if (score_earned >100):
  9. score_earned=100
  10. print("Total points = "+str(score_earned)+str("/100"))
  11. weighted_score=int((score_earned/100)*weight_1)
  12. print("Your weighted score = "+str(weighted_score)+"/"+str(weight_1))
Add Comment
Please, Sign In to add comment