Question: Must be done in python. Please complete the Class already started and when doing __str__ function please look at the example for formatting Design a

Must be done in python.

Please complete the Class already started and when doing __str__ function please look at the example for formatting

Must be done in python. Please complete the Class already started and

Design a class named Assessment to represent an assessment record. The Assessment class contains the following A private String data field named name that defines the name of an assessment. A private List data field named answer_list that defines the list of answer keys of an assessment. A constructor that creates an Assessment with the required information The accessor and mutator methods for all data fields. A_str_method which returns a nicely formatted string representation of an assessment. A calculate_marks method which takes a string data as a parameter, compares the answer keys and returns the total marks gained . Note keep a copy of your solution to this task because you will use it in your A1 For example Test Result lab!= Assessment( ' test","C,C,D,B,A,B,A,C") print(lab1) | test : answer: ['C', 'C', 'D', 'B', 'A', 'B', 'A', 'C'] Answer: (penalty regime: 0 %) 1,1 class Assessment: def _init_(self, name, answer_list): seLf.__namename 4 self.__answer list-list(answer list.split(',') def get_name(self) 7 return self.__name def setName(self, name): 10 se Lt.-_name name = def get_answer_list(self): 12 13 14 15 16 17 return self.__answerlist def setAnswer_List(self): self-answer-List answer-List =

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!