Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Python3 Ordered Set Problem Do not modify the starter code except in the allowed places: *YOUR CODE GOES HERE* and For the declaration of

Python3 Ordered Set Problem

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

Do not modify the starter code except in the allowed places: *YOUR CODE GOES HERE* and " For the declaration of class SchoolLibrary, please uncomment the following line before you start: class Schoo!Library ( In this question you will be asked to create two classes: Library and SchoolLibrary. Library class has the following attributes and methods . member . constructor - a CLASS ATTRIBUTE which keeps track of members in all libraries (class attribute is an attribute shared by all the instances of that class) - constructor to create an instance of Library object o takes location as its argument o creates location as an object attribute o catalog (lists of books) which is initially empty. Another object attribute - a string of where the Library is located - the list of books this Library contains . add_book() - adds a given book (for this question just the name of book) to the Library catalog, as a string checks out a book from the Library catalog(if check out failed, a corresponding error message should be printed) check_out() .get_location) - returns the location of the Library .get_num_books()- returns the number of books in the Library . add_member adds a person to the Library membership list . remove_member) removes a person from the Library membership list SchoolLibrary class is a child (subclass) class of Library and has the following attributes and methods (besides those already defined in Library) . constructor - constructor to create an instance of SchoolLibrary object. (Note: Since SchoolLibrary is inherited from Library, what extra line should you add?) get_school_name() - returns the name of the school which is part of the SchoolLibrary object only

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_2

Step: 3

blur-text-image_3

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 Processing Fundamentals Design And Implementation

Authors: KROENKE DAVID M.

1st Edition

8120322258, 978-8120322257

More Books

Students also viewed these Databases questions