Python code please .
Simple code please
1. You need to use the concept of object, class, methods and inheritance. 2. Proper documentation for each of the methods and exception handling are required. 3. Helpful codes can be found in the Inheritance lecture, lecture 7 and 8 4. No need to write a pseudocode. Program Design: Before starting of the program draw a general outline of your code. Think about it from the operati perspective 1. a. What should be the base class? Hint Think about a Book class. i. What are the methods and attributes that are common among all the classes? b. What should be your sub classes? Can you identify the IS-A relationships? Hint: Different genre since they have some additional information to keep track of. i. What are the methods and attributes needed to properly define a subclass? ii. How to use the init of the superclass? How to design the search options for the user? Hint Remember how we extended a list clas while designing our Contact manager class by adding a search method? (Lecture 7: Extendin c. built-ins Ex3_contact_ list_ inheritance.py) 2. 3. 4. Based on the information from the step 1, write the class definition and methods. Start the input file processing and create the objects to build the database. Dsign the main menu structure as provided in the sample VO. Here is a sample example of the input file, (an input file named library.txt is attached with the assignment) Novel, Girl with no name, Deborah Rai,S1234,Historic Novel, Despicable me,Jane Joe, S245,Mystery Scifi,Journey to the moon, Ashley Howler, S789,10.10.2018, Rm1 Scifi The calculating stars,Mary Kowal, S123,No upcoming movie Each line contains a record of book. The information is following in order (separated by comma): Genre, Title, Authors), Stack no to locate the book in The additional Information depends on the genre of the book. library (starts with S), Additional Information If the genre is novel then the additional information provide sub-genre information and it can be Mystery novel or Historic Novel. 1. 2. Library often arranges a scifi movie night for its customer. If the genre is scifi the additional information provides the upcoming movie night date and location. Some scifi book does not have any upcoming movie date. Program Output and Behavior Specification: Once the program has read in the data file, it should build the database using the OOP concepts, once it is done, it should request and process search query from the user. The format of the query should be similar to the following. You can be creative on how you want to design the layout of the program. One sample run can be as follows: but for design interface you can be creative. Sample I/o Welcome to library database main menu: 1. Search 2. Exit Enter choice (1/2): 1 Enter title of the book: Girl with no nane Book Information Titie: Girl with no name Genze: Novel Sub-genre: Historic Author: Deborah Rai Stack :$1234 1. Search 2. Exit Enter choice (1/2): 1 Enter title of the book: Jouney to the moon Title Jouney to the moon not found. Returning to-ain menu # Misspelled name 1. Search 2. Exit Enter choice (1/2): 1 Enter title of the book: Sourney to the moon Book Information Title: Journey to the moon Genre: Scifi Author: Ashley Howler Stack :8789 Movie date: 10.10.2018 and location:Rm1 1. Search 2. Exit Enter choice (1/2): 1 Enter title of the book: The calculating stars Book Information Titie: The caleulating stars Genre: Scifi Author: Mary Kowal Stack :5123 Movie date: No upcoming movie and location No location information 1. You need to use the concept of object, class, methods and inheritance. 2. Proper documentation for each of the methods and exception handling are required. 3. Helpful codes can be found in the Inheritance lecture, lecture 7 and 8 4. No need to write a pseudocode. Program Design: Before starting of the program draw a general outline of your code. Think about it from the operati perspective 1. a. What should be the base class? Hint Think about a Book class. i. What are the methods and attributes that are common among all the classes? b. What should be your sub classes? Can you identify the IS-A relationships? Hint: Different genre since they have some additional information to keep track of. i. What are the methods and attributes needed to properly define a subclass? ii. How to use the init of the superclass? How to design the search options for the user? Hint Remember how we extended a list clas while designing our Contact manager class by adding a search method? (Lecture 7: Extendin c. built-ins Ex3_contact_ list_ inheritance.py) 2. 3. 4. Based on the information from the step 1, write the class definition and methods. Start the input file processing and create the objects to build the database. Dsign the main menu structure as provided in the sample VO. Here is a sample example of the input file, (an input file named library.txt is attached with the assignment) Novel, Girl with no name, Deborah Rai,S1234,Historic Novel, Despicable me,Jane Joe, S245,Mystery Scifi,Journey to the moon, Ashley Howler, S789,10.10.2018, Rm1 Scifi The calculating stars,Mary Kowal, S123,No upcoming movie Each line contains a record of book. The information is following in order (separated by comma): Genre, Title, Authors), Stack no to locate the book in The additional Information depends on the genre of the book. library (starts with S), Additional Information If the genre is novel then the additional information provide sub-genre information and it can be Mystery novel or Historic Novel. 1. 2. Library often arranges a scifi movie night for its customer. If the genre is scifi the additional information provides the upcoming movie night date and location. Some scifi book does not have any upcoming movie date. Program Output and Behavior Specification: Once the program has read in the data file, it should build the database using the OOP concepts, once it is done, it should request and process search query from the user. The format of the query should be similar to the following. You can be creative on how you want to design the layout of the program. One sample run can be as follows: but for design interface you can be creative. Sample I/o Welcome to library database main menu: 1. Search 2. Exit Enter choice (1/2): 1 Enter title of the book: Girl with no nane Book Information Titie: Girl with no name Genze: Novel Sub-genre: Historic Author: Deborah Rai Stack :$1234 1. Search 2. Exit Enter choice (1/2): 1 Enter title of the book: Jouney to the moon Title Jouney to the moon not found. Returning to-ain menu # Misspelled name 1. Search 2. Exit Enter choice (1/2): 1 Enter title of the book: Sourney to the moon Book Information Title: Journey to the moon Genre: Scifi Author: Ashley Howler Stack :8789 Movie date: 10.10.2018 and location:Rm1 1. Search 2. Exit Enter choice (1/2): 1 Enter title of the book: The calculating stars Book Information Titie: The caleulating stars Genre: Scifi Author: Mary Kowal Stack :5123 Movie date: No upcoming movie and location No location information