Assignment
You have been hired by a library to build a distributed data storage system using a
remote object paradigm that will allow one to store and access information relating to
copies of books, authors of books and users who loan copies of books.
Each author has the following two associated pieces of information which should be
stored in the system:
1. Author name.
2. Author genre which refers to the type of books written by the author (e.g. crime,
fiction).
Each book copy has the following two associated pieces of information which should
be stored in the system:
1. Book author.
2. Book title.
Note, multiple copies of a single book can exist in the system.
Each user has the following one associated piece of information which should be
stored in the system:
1. User name.
Design and implement the above distributed data storage system using a remote
object paradigm which allows library employees to perform the following twelve
tasks:
Task 1
Add a user to the system. Implement this using a method with the following header:
def add_user(self, user_name)
An example of calling this method is:
library_object.add_user(“Allen Hatcher”)
Task 2
Return all associated pieces of information relating to the set of users currently
stored in the system (I.e. a set of user names). Implement this using a method with
the following header:
def return_users(self):
An example of calling this method is:
library_object.return_users()