Question: please using python 3 to do this problem Write a function, compute grade..., .that takes a parameter, file_name, and computes the final grade of class

please using python 3 to do this problemplease using python 3 to do this problem Write a function, compute

Write a function, compute grade..., .that takes a parameter, file_name, and computes the final grade of class given the grades of each section of the course and the weights associate with the section. Your function should read each line of a file, compute the average of the values associated with the section and weight the average by the weights indicated. The final grade is the sum of the weighted averages. The function should return the final grade of the class. Notes: 1)The values are comma separated. 2) If the file is not found return "File not found". Ex If the content of the file "csci1300 grades.txt" is: 90,90,98, Practicum,0.2 90,90,90, Recitation,e.3 90,90,90,Assignment,0.2 100,Assignment4,8.05 100,Assignment7,0.1 100,Assignment8,0.15 When the following code is executed file_name"csci1300_grades.txt" print compute_grade(file_name) This should be the output

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!