Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print(" Available catergories: "
- ' Attending \n'
- ' Groups_Forums_Surveys \n'
- ' ZyBook \n'
- ' Team_Programming_Assignments \n'
- ' Midterm \n'
- ' Final \n'
- ' Individual_Assignment \n')
- Attending = [10, 10, 10, 10, 10, 10, 10, 10, 10, 10]
- Groups_Forums_Surveys = ([10, 10, 10, 10, 10, 10, 10, 10, 10, 10])
- ZyBook = [30, 30, 30, 30, 30]
- Midterm = 20
- Final = 20
- Individual_Assignment = 100
- def average_score(Attending, Groups_Forums_Surveys, ZyBook, Midterm, Final, Individual_Assignment):
- points_earned = [10, 10, 10, 10, 10, 10, 10, 10, 10, 10]
- percentage = [100, 100, 100, 100, 100, 100, 100, 100, 100, 100]
- return " The amount of points earned for attendence " + str( points_earned[0] ) + " Out of " + '10' + ' points' + " Which is " + str( percentage[0] ) + '%'
- points_earned = [10, 10, 10, 10, 10, 10, 10, 10, 10, 10]
- percentage = [100, 100, 100, 100, 100, 100, 100, 100, 100, 100]
- 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] ) + '%'
- points_earned = [24.14634146, 24.86842105, 17.71812081, 28.62068966, 22.70833333]
- percentage = [80, 82, 59, 95, 75 ]
- return " The amount of points earned for ZyBook " + str( points_earned[0] ) + " Out of " + str( ZyBook[0] ) + ' points' + " Which is " + str( percentage[0] ) + '%'
- points_earned = [7.0, 36.45, 50, 50, 50, 50, 50]
- percentage = [70, 91, 100, 100, 100, 100, 100]
- 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] ) + '%'
- points_earned = 20
- percentage = 100
- return " The amount of points earned for Midterm " + str( points_earned ) + " Out of " + str( Midterm ) + ' points' + " Which is " + str( percentage ) + '%'
- points_earned = 20
- percentage = 100
- return " The amount of points earned for Final " + str( points_earned ) + " Out of " + str( Final ) + ' points' + " Which is " + str(float( percentage )) + '%'
- points_earned = 100
- percentage = 100
- return " The amount of points earned is " + str( points_earned ) + " Out of " + str( Individual_Assignment ) + ' points' + " Which is " + str( percentage ) + '%'
- if __name__ == '__main__':
- user_chooses = input("Please choose a catergory: ")
- print(average_score(Attending, Groups_Forums_Surveys, ZyBook, Midterm, Final, Individual_Assignment))
Advertisement
Add Comment
Please, Sign In to add comment