# MODIFY THE TEMPLATE TO: Write a program that accepts six project scores. All scores are # out of 100 points, except the first (which is out of 30), and the fifth (which is out # of 50). The program provides the highest average grade (as integer) # for all the projects by dropping the one with the lowest percentage. For example, # if a student got a 65% on the first project (out of 30) and a 55% on the fifth project # (out of 50), that fifth project would be dropped from the average calculation. def template(n1, n2, n3, n4, n5, n6): number1 = n1 # this gets the first number from the user and stores it in a memory location called number1 number2 = n2 number3 = n3 number4 = n4 number5 = n5 number6 = n6 result = 0 return int(result) # END OF YOUR CODE print(template(0, 100, 100, 100, 50, 100)) print(template(30, 0, 100, 100, 50, 100)) print(template(30, 100, 0, 100, 50, 100)) print(template(30, 100, 100, 0, 50, 100)) print(template(30, 100, 100, 100, 0, 100)) print(template(30, 100, 100, 100, 50, 0)) print(template(15, 55, 55, 55, 25, 55)) test1 = template(0,100,100,100,50,100) test2 = template(30,0,100,100,50,100) test3 = template(30,100,0,100,50,100) test4 = template(30,100,100,0,50,100) test5 = template(30,100,100,100,0,100) test6 = template(30,100,100,100,50,0) test7 = template(15,55,55,55,25,55) if (test1 == 100): print("average of (0,100,100,100,50,100) is 100, you got it RIGHT!") else: print("average of (0,100,100,100,50,100) is 100, you got: " + str(test1)) if (test2 == 100): print("average of (30,0,100,100,50,100) is 100, you got it RIGHT!") else: print("average of (30,0,100,100,50,100) is 100, you got: " + str(test2)) if (test3 == 100): print("average of (30,100,0,100,50,100) is 100, you got it RIGHT!") else: print("average of (30,100,0,100,50,100) is 100, you got: " + str(test3)) if (test4 == 100): print("average of (30,100,100,0,50,100) is 100, you got it RIGHT!") else: print("average of (30,100,100,0,50,100) is 100, you got: " + str(test4)) if (test5 == 100): print("average of (30,100,100,100,0,100) is 100, you got it RIGHT!") else: print("average of (30,100,100,100,0,100) is 100, you got: " + str(test5)) if (test6 == 100): print("average of (30,100,100,100,100,0) is 100, you got it RIGHT!") else: print("average of (30,100,100,100,100,0) is 100, you got: " + str(test6)) if (test7 == 54): print("average of (15,55,55,55,25,55) is 54, you got it RIGHT!") else: print("average of (15,55,55,55,25,55) is 54, you got: " + str(test7)) if (test1 == 100 and test2 == 100 and test3 == 100 and test4 == 100 and test5 == 100 and test6 == 100 and test7 == 54): print("Your code passed all the tests!") else: print("Please check your code, at least one test case did not pass.")