Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Must be done in Python You are required to do the Assessment Class Question: Following is the Class I have currently, please ammend the class

Must be done in Python

You are required to do the Assessment Class

Question:

image text in transcribed

Following is the Class I have currently, please ammend the class so it the test codes can be carried out correctly.

image text in transcribed

Test Codes & Outputs

image text in transcribed

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

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

Databases In Networked Information Systems 6th International Workshop Dnis 2010 Aizu Wakamatsu Japan March 2010 Proceedings Lncs 5999

Authors: Shinji Kikuchi ,Shelly Sachdeva ,Subhash Bhalla

2010th Edition

3642120377, 978-3642120374

Students also viewed these Databases questions

Question

3. Evaluate your listeners and tailor your speech to them

Answered: 1 week ago