Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

Please check to see the test code produces the required output.

These are the classes that are required:

image text in transcribed

image text in transcribed

image text in transcribed

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:

image text in transcribed

image text in transcribed

image text in transcribed

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

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

Database And Expert Systems Applications 24th International Conference Dexa 2013 Prague Czech Republic August 2013 Proceedings Part 1 Lncs 8055

Authors: Hendrik Decker ,Lenka Lhotska ,Sebastian Link ,Josef Basl ,A Min Tjoa

2013 Edition

3642402844, 978-3642402845

More Books

Students also viewed these Databases questions