Question: Must be done in python You are required to complete the following function Please check to see the test code produces the required output. These
Must be done in python
You are required to complete the following function

Please check to see the test code produces the required output.
These are the classes that are required:



If you need to ammend the classes below are the test codes and required outputs for the classes so you can check if they still satisfy all the conditions:



You are required to complete the read_data (assessment, classlist) function which takes an Assessment object and a list of student objects as parameters. The function should read a series of student responses. You can assume that all student responses of an assessment are stored in a text file and the filename is the name of the assessment. The function should compare the responses with the solution of the assessment for each student, calculate the marking result, append the marking result into a histogram object and return it. For example: Test Result max_mark: 8, occurrence: [0, 0, 1, 0, 0, 0, 0, 0, 0) s - Student('John', 'N0000001', 'john@amail.com') classlist = [s] assessment = Assessment('test', 'C,C,D,B,A,B,A,C') histogram = read_data(assessment, classlist) print(histogram) You are required to complete the read_data (assessment, classlist) function which takes an Assessment object and a list of student objects as parameters. The function should read a series of student responses. You can assume that all student responses of an assessment are stored in a text file and the filename is the name of the assessment. The function should compare the responses with the solution of the assessment for each student, calculate the marking result, append the marking result into a histogram object and return it. For example: Test Result max_mark: 8, occurrence: [0, 0, 1, 0, 0, 0, 0, 0, 0) s - Student('John', 'N0000001', 'john@amail.com') classlist = [s] assessment = Assessment('test', 'C,C,D,B,A,B,A,C') histogram = read_data(assessment, classlist) print(histogram)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
