$34.99
Grading guidelines:
2. Break-up of Credits will be as follows:
(a) Percentage of features implemented:
(b) Aesthetics:
(c) Whether reasonably able to answer questions:
A book can contain many types of content, e.g. a novel, a play, etc. For this assignment, you need to implement a novel and play, but your software design should be such that other types of books can be easily added. A novel can contain many chapters. Each chapter has a title followed by many paragraphs. Each paragraph contains many sentences, and each sentence is a sequence of words. A play has a optional prologue followed by many acts. Each act has many scenes, and each scene is a sequence of dialogues. Additionally, a play also has a list of characters or personae, where each dialogue is spoken by a character.
Use case 1:
You have to create a Library management system (LMS) which manages all the books in a given directory. The program will start with a directory as input, and will manage the books in that directory. The LMS will maintain the type of each book in the library, in a file called “index.txt”. It should automatically detect all files in the directory and be able to detect the newly added books. It should then ask the user for type of each of the newly added books and add them to “index.txt”.
Use case 2:
The LMS should have the following functionality:
1. List all books along with their filename, title, and author name.
2. Search for a book by its title or author name, and show the matching books as a list.
3. Display a book from any of the above two lists.
Use case 3:
The LMS should be able to perform the following analytics tasks:
1. If the type of the selected book is novel, given an input word, the LMS should be able to show the top 5 chapters, or top 5 paragraphs, where this word appears most of the times.
2. If the type of the selected book is play, then given an input character, the LMS should show a list of all other characters which appear in at least one scene with the input character.
Example Project Gutenberg file header:
The Project Gutenberg EBook of Moby Dick; or The Whale, by Herman
Melville
Title: Moby Dick; or The Whale