Question: python 3. Write definitions of two new abstract data types (ADTs): Patron and Librar Assume that we want to create a simple library: a library

python  python 3. Write definitions of two new abstract data types (ADTs):
Patron and Librar Assume that we want to create a simple library:

3. Write definitions of two new abstract data types (ADTs): Patron and Librar Assume that we want to create a simple library: a library has a list of dif- ferent book titles (assume that we ignore the information about the author, different publishers, publish year, and other information; we are interested only in a title of the book), a list of patrons, library name and library id. Each patron has a name, id, and the list of books on loan (these will also be book titles). Feel free to add more attributes as you see fit. Each Patron instance should be able to: (a) return the patron's name and id (b) return the alphabetized list of book titles the patron borrowed and did not return yet (c) return the number of books on loan, (d) add a book title to the list of books on loan, 3. Write definitions of two new abstract data types (ADTs): Patron and Librar Assume that we want to create a simple library: a library has a list of dif- ferent book titles (assume that we ignore the information about the author, different publishers, publish year, and other information; we are interested only in a title of the book), a list of patrons, library name and library id. Each patron has a name, id, and the list of books on loan (these will also be book titles). Feel free to add more attributes as you see fit. Each Patron instance should be able to: (a) return the patron's name and id (b) return the alphabetized list of book titles the patron borrowed and did not return yet (c) return the number of books on loan, (d) add a book title to the list of books on loan

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!