Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2015 Porto Portugal September 7 11 2015 Proceedings Part 2 Lnai 9285

Authors: Annalisa Appice ,Pedro Pereira Rodrigues ,Vitor Santos Costa ,Joao Gama ,Alipio Jorge ,Carlos Soares

1st Edition

3319235249, 978-3319235240

More Books

Students also viewed these Databases questions