Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Spatial Database Systems Design Implementation And Project Management

Authors: Albert K.W. Yeung, G. Brent Hall

1st Edition

1402053932, 978-1402053931

More Books

Students also viewed these Databases questions

Question

What is Ramayana, who is its creator, why was Ramayana written?

Answered: 1 week ago

Question

To solve by the graphical methods 2x +3y = 9 9x - 8y = 10

Answered: 1 week ago

Question

Why does sin 2x + cos2x =1 ?

Answered: 1 week ago