#Admission to the Widener University Honors Program requires a cumulative #GPA of 3.5 or above. Write a program that first reads the number of #students applied for Honors Program. Then, the program reads a cumulative #GPA for each student. The program finds and prints the number of students #accepted to Honors Program and their average GPA. #For example if 10 students applied for Honors Program, and their GPAs #are: 2.5 2.7 3.49 3.5 3.6 3.7 3.4 3.8 3.9 2.8 #the program outputs: 5 students accepted to Honors, and their average GPA #is 3.7 #For example if 5 students applied for Honors Program, and their GPAs are: #2.3 2.5 3.4 3.45 3.49 #the program outputs: no students accepted to Honors Program #First Input num=int(input("enter number of students who applied to Honors ")) #Calculations and additional inputs i=1 #general counter count_Honors=0 #special counter that counts students who has GPA >=3.5 sum_GPA_Honors=0 #accumulated GPAs that are >=3.5 while(i<=num): #if you start i from 0 then condition will be i=3.5): count_Honors=count_Honors+1 sum_GPA_Honors=sum_GPA_Honors+GPA i=i+1 #Average is calculated AFTER LOOP!!!! #average=sum_GPA_Honors/count_Honors #THIS LINE MUST BE INSIDE THE IF #STATEMENT, HAVING IT BEFORE IF WILL CAUSE DIVISION BY ZERO IN CASE AND #count_Honors=0 if(count_Honors>0): average=sum_GPA_Honors/count_Honors print("there are",count_Honors,"accepted to Honors") print("their average",average) else: print("nobody accepted to Honors")