Question
Python program: Write the following functions to process the content read from the file. a. Class average b. Pass rate (total number of students who
Python program:
Write the following functions to process the content read from the file.
a. Class average
b. Pass rate (total number of students who passed divided by the total number of students)
c. Highest score and Lowest Score
d. Count of A grades (above 90%), B grades (above 80%), C grades (above 60%), D grades (above 50%), and F grades (below 50%)
And then test each of the above functions. Display all the results from the function calls where each students grades are printed and also the class report is printed. Sample input file content:
scores.txt
Naji Hasan 90 85 87
Lisa Smith 80 67 70
Andy Malik 75 80 52
Ravi Gupta 90 95 98
Dave Blair 50 61 70
Sara Clark 70 65 81
Sami Moosa 55 50 71
Imed Radhi 90 83 89
Kira Sunny 65 70 69
Hind Ahmed 70 81 88
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