Problem_all_the_time

Lab_5

Oct 31st, 2020 (edited)
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.52 KB | None | 0 0
  1. print(" Available catergories: "
  2. ' Attending \n'
  3. ' Groups_Forums_Surveys \n'
  4. ' ZyBook \n'
  5. ' Team_Programming_Assignments \n'
  6. ' Midterm \n'
  7. ' Final \n'
  8. ' Individual_Assignment \n')
  9. Attending = [10, 10, 10, 10, 10, 10, 10, 10, 10, 10]
  10. Groups_Forums_Surveys = ([10, 10, 10, 10, 10, 10, 10, 10, 10, 10])
  11. ZyBook = [30, 30, 30, 30, 30]
  12. Midterm = 20
  13. Final = 20
  14. Individual_Assignment = 100
  15. def average_score(Attending, Groups_Forums_Surveys, ZyBook, Midterm, Final, Individual_Assignment):
  16. points_earned = [10, 10, 10, 10, 10, 10, 10, 10, 10, 10]
  17. percentage = [100, 100, 100, 100, 100, 100, 100, 100, 100, 100]
  18. return " The amount of points earned for attendence " + str( points_earned[0] ) + " Out of " + '10' + ' points' + " Which is " + str( percentage[0] ) + '%'
  19. points_earned = [10, 10, 10, 10, 10, 10, 10, 10, 10, 10]
  20. percentage = [100, 100, 100, 100, 100, 100, 100, 100, 100, 100]
  21. return " The amount of points earned for Groups_Forums_Surveys " + str( points_earned[0] ) + " Out of " + str( Groups_Forums_Surveys[0] ) + ' points' + " Which is " + str( percentage[0] ) + '%'
  22. points_earned = [24.14634146, 24.86842105, 17.71812081, 28.62068966, 22.70833333]
  23. percentage = [80, 82, 59, 95, 75 ]
  24. return " The amount of points earned for ZyBook " + str( points_earned[0] ) + " Out of " + str( ZyBook[0] ) + ' points' + " Which is " + str( percentage[0] ) + '%'
  25. points_earned = [7.0, 36.45, 50, 50, 50, 50, 50]
  26. percentage = [70, 91, 100, 100, 100, 100, 100]
  27. return " The amount of points earned for Team_Programming_Assignments " + str( points_earned[0] ) + " Out of " + str( Team_Programming_Assignments[0] ) + ' points' + " Which is " + str( percentage[0] ) + '%'
  28. points_earned = 20
  29. percentage = 100
  30. return " The amount of points earned for Midterm " + str( points_earned ) + " Out of " + str( Midterm ) + ' points' + " Which is " + str( percentage ) + '%'
  31. points_earned = 20
  32. percentage = 100
  33. return " The amount of points earned for Final " + str( points_earned ) + " Out of " + str( Final ) + ' points' + " Which is " + str(float( percentage )) + '%'
  34. points_earned = 100
  35. percentage = 100
  36. return " The amount of points earned is " + str( points_earned ) + " Out of " + str( Individual_Assignment ) + ' points' + " Which is " + str( percentage ) + '%'
  37.  
  38. if __name__ == '__main__':
  39. user_chooses = input("Please choose a catergory: ")
  40. print(average_score(Attending, Groups_Forums_Surveys, ZyBook, Midterm, Final, Individual_Assignment))
  41.  
  42.  
  43.  
Advertisement
Add Comment
Please, Sign In to add comment