Guest User

Untitled

a guest
Dec 12th, 2017
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.20 KB | None | 0 0
  1. def score(total_points, your_points, desired_score, points_LOTB):
  2. S_desired_score = desired_score / 100
  3. points_need = total_points * S_desired_score
  4. points_get = points_need - your_points
  5. D_score_needed = points_get / points_LOTB
  6. score_needed = D_score_needed * 100
  7.  
  8. if score_needed <= 0:
  9. print ("If you skip your final and still pass your class with a", desired_score, "%.")
  10.  
  11. if score_needed > 100:
  12. print ("You can't make a", desired_score, "% even if you make a perfect score on your test.")
  13.  
  14. if (score_needed <= 100 and score_needed >= 0):
  15. print ("You need to make at least", score_needed, "% on your test to make a", desired_score, "% in your class.")
  16.  
  17. """
  18. In the first section, put the total points possible from your course. Ex. (1000, , , )
  19.  
  20. In the second section, put the current amount of points you have in your class. Ex. (1000, 875, , )
  21.  
  22. In the third section, put the desired score that you are aiming for in your class, in whole number form. If you wanted to make above a 90 percent you would write '90'. Ex. (1000, 875, 90, )
  23.  
  24. In the last section, put the total number of points that are left in your class. Ex. (1000, 875, 90, 100)
  25.  
  26. """
  27.  
  28.  
  29. score( , , , )
Add Comment
Please, Sign In to add comment