Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

PLEASE READ CAREFULLY! Code has to do with writhing a book , also simple code please. And show indents and print Topics: class, object, instantiation,

PLEASE READ CAREFULLY! Code has to do with writhing a book , also simple code please. And show indents and print image text in transcribed
Topics: class, object, instantiation, methods, inheritance Problem Statement: Small Book Repository Design and implement a simple interactive Book database for library users In addition to building the base, the program should be able to search a particular book title from the database. The purpose of this lab is to gain experience in python's class, methods and inheritance features. 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, lectur 748 4 No need to write a pseudocode. 1 Before starting of the program draw ageneral outline of your code. Think about it from the operational a. What should be the base class? HintThink about a Book dlass 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?Hnt-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 class while designing our Contact manager dass by adding a seanch method ecture 7: Extending built-ins Ex3_contact_list inheritance.py) 2 Based on the information from the step 1, write the dlass delinition and methods 3 Start the input file processing and create the objects to build the database 4Design the main menu structure as provided in the sample /O. Here is a sample example of the input file, (an input file named library.tt is attached with the assignment) Novel,Girl with no nane, Deborah Rai,$1234,Historic Novel, Despicable ne, Jane Joe, 5245,Mystery Scifi Scifi. The calculating stars,Mary Koval,5123,No upcoming movie to the moon, Ashley Howler,5789,18.10.2018,Rm Each line contains a record of book. The information is following in order (separated by comma): Genre, Titke, Authorisl, Stack no to locate the book in Wibrory (storts with SL. Additional linfomation The additional Information depends on the genre of the book 1 If the genre is novel then the additional information provide sub-genre information and it can be Mystery novel or Historic Novel 2. Library often arranges a scifi movie night for its customer, if the genre is sclfi the addtional information provides the upcoming movie night date and location. Some soifi booik does not have any upcoming movie date Once the program has read in the data fFle, 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. Topics: class, object, instantiation, methods, inheritance Problem Statement: Small Book Repository Design and implement a simple interactive Book database for library users In addition to building the base, the program should be able to search a particular book title from the database. The purpose of this lab is to gain experience in python's class, methods and inheritance features. 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, lectur 748 4 No need to write a pseudocode. 1 Before starting of the program draw ageneral outline of your code. Think about it from the operational a. What should be the base class? HintThink about a Book dlass 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?Hnt-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 class while designing our Contact manager dass by adding a seanch method ecture 7: Extending built-ins Ex3_contact_list inheritance.py) 2 Based on the information from the step 1, write the dlass delinition and methods 3 Start the input file processing and create the objects to build the database 4Design the main menu structure as provided in the sample /O. Here is a sample example of the input file, (an input file named library.tt is attached with the assignment) Novel,Girl with no nane, Deborah Rai,$1234,Historic Novel, Despicable ne, Jane Joe, 5245,Mystery Scifi Scifi. The calculating stars,Mary Koval,5123,No upcoming movie to the moon, Ashley Howler,5789,18.10.2018,Rm Each line contains a record of book. The information is following in order (separated by comma): Genre, Titke, Authorisl, Stack no to locate the book in Wibrory (storts with SL. Additional linfomation The additional Information depends on the genre of the book 1 If the genre is novel then the additional information provide sub-genre information and it can be Mystery novel or Historic Novel 2. Library often arranges a scifi movie night for its customer, if the genre is sclfi the addtional information provides the upcoming movie night date and location. Some soifi booik does not have any upcoming movie date Once the program has read in the data fFle, 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

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

Implementing Ai And Machine Learning For Business Optimization

Authors: Robert K Wiley

1st Edition

B0CPQJW72N, 979-8870675855

More Books

Students also viewed these Databases questions