Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started