Question: ZYDE 2.2.2: Student grade statistics. The following program calculates some information regarding final and midterm scores. Try enhancing the program by calculating the average midterm

 ZYDE 2.2.2: Student grade statistics. The following program calculates some information

ZYDE 2.2.2: Student grade statistics. The following program calculates some information regarding final and midterm scores. Try enhancing the program by calculating the average midterm and final scores. Load default template... 1 #Program to calculate statistics from student test scores. 2 midterm_scores = [99.5, 78.25, 76, 58.5, 100, 87.5, 91, 68, 100] 3 final_scores = [55, 62, 100, 98.75, 80, 76.5, 85.25] 4. 5 #Combine the scores into a single list 6 all_scores = midterm_scores + final_scores 7 8 num_midterm_scores = len(midterm_scores) 9 num_final_scores = len(final_scores) 10 11 print(num_midterm_scores, 'students took the midterm.') 12 print(num_final_scores, 'students took the final.') 13 14 #Calculate the number of students that took the midterm but not the final 15 dropped_students = num_midterm_scores - num_final_scores 16 print (dropped_students, students must have dropped the class.') 17 18 lowest_final = min(final_scores) 19 highest_final = max(final_scores) 20 Run

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!