It needs to be done in Python, using Introductory Python Language, and Introductory OOP.
Question:


Blueprint that it needs to be done on:
books.txt file:
events.txt file:

Library software, procedural style ( 10 points) For this assignment, you are writing software for a library to help it manage its books. You will do this with a Book class. Book objects should have the following properties: - A title - An author - An ISBN - A Boolean indicating whether the book is currently checked out. True means that someone has the book, and False means that the book is at the library - A string containing the name of the person who currently has the book, or None if the book is not checked out Look in the file library.py . It contains an empty Book class, as well as the headers for several useful functions. Those functions include: - create_book() : Returns a new Book object with the given properties - \( \quad \) : Changes the status of the given book to checked out, recording the name of the person who has it Changes the status of the given book to returned. Returns a string representation of the book. Write these functions so they perform the functionality described above. The book_to_str() function should return one of the following strings depending on the state of the book. For example, if given the book "Jane Eyre" by Charlotte Bronte with an ISBN of 9780141441146 , the function should return the following if no one has it: Jane Eyre by Charlotte Bronte, ISBN 9780141441146. Status: Not checked out However, if that same book were checked out by Steve, the function should return the following string: Jane Eyre by Charlotte Bronte, ISBN 9780141441146. Status: Checked out by Steve
Library books ( 15 points) The file books.txt contains a listing of 100 books randomly chosen from the Best Books Ever dataset. Each line contains the title, author, and ISBN of each book separated by a " \( \mid \) " character. In the function read this file and use it to construct a dictionary that maps ISBNs to Book objects created with your function. Inventory status (15 points) The file contains a log of check-outs and check-ins at the library. Each line of the file represents a single transcation. If the transaction was a check-out, the line looks like this, meaning that the book with ISBN 9781449480127 was checked out by Veronica: On the other hand, if the transaction was a return, the line looks like this, meaning that the book with ISBN 9780330314916 was checked in: RETURN, 9780330314916 In the function use this log of events and your library dictionary to update the status of each book in the library. Once this function is complete, use the book_to_str( ) function to output the state of the entire inventory of the library into a new file You may assume that the events file is well-formed. It will not contain errors like checking out an already checkedout book
Vampire Mountain|Darren Shan | 9780316905749 Sex, Murder and a Double Latte|Kyra Davis|9780373895809 In the Kingdom of Men|Kim Barnes|9780307273390 Intelligent Universe|Ilyan Kei Lavanway| 9781301208272 The Promise|Kate Worth|9781476274669 Friend of the Devil|Peter Robinson|9780340836897 Little Dove|Jaden Wilkes|BOONUTJ2V6 Fish and Chips|Erynn Mangum|B005ERY6V8 Black Flower/Young-Ha Kim| 9780547691138 Lothaire|Kresley Cole|9781439136829 Fantastic Voyage|Isaac Asimov|9780553275728 Shinjo: Reflections|Shinjo Ito| 9781935244004 The Coast of Chicago|Stuart Dybek|9780312424251 The Silver Child|Cliff McNish|9780822565031 Belonging|Karen Ann Hopkins|9780373210817 The Eye of The Forest|P.B. Kerr|9780439932158 Cake|Nicole Reed|BOOEAP8UQ2 Relentless|Robin Parrish|9780764203459 Deity| Jennifer L. Armentrout|9781937053147 Pieces of a Song: Selected Poems|Diane di Prima|9780872862371 Tribes|Arthur Slade| 9780440229759 Mine Till Midnight|Lisa Kleypas|9780312949808 By the Rivers of Babylon|Nelson DeMille/9780751531237 Plutopia: Nuclear Families, Atomic Cities, and the Great Soviet and American Plutonium Disasters|Kate Brown|9780199855766 The Gold Mine|Max Cummings|B00NOCVN9S Listen to My Voice|Susanna Tamaro| 9781846550645 Cliquetionary: The Wit and Wisdom of the Clique|Lisi Harrison|9780316070652 A Lantern in Her Hand|Bess Streeter Aldrich|9780140384284 Logan's Story|Sarah Robinson|9781500118686 Life is Elsewhere|Milan Kundera|9780060997021 Lord of the Flies: By William Golding (The Teacher's Companion)|Karen Malouf|9781558630505 Blackmailed|Annmarie McKenna|9781599982137 Zen Ties|Jon J. Muth|9780439634250
CHECK-OUT, 9780330314916 , Tonya CHECK-OUT, 9781449480127 , Veronica RETURN, 9780330314916 RETURN, 9781449480127 CHECK-OUT, 9781860492822 , Armando CHECK-OUT, 9781476274669 ,Phillip RETURN, 9781860492822 CHECK-OUT, 9780441520992 , Dustin CHECK-OUT, 9780340836897 , Barbara CHECK-OUT, 9781599982137 , Ebony CHECK-OUT, 9780872862371 , Summer CHECK-OUT, 9780312140915 , Gerald RETURN, 9781599982137 CHECK-OUT, 9780718157029 , Brent CHECK-OUT, 9781466415089 , Alexandra CHECK-OUT, 9780312949808 , Evan CHECK-OUT, 9781849013765 , Kimberly CHECK-OUT, 9781442489332 , Darryl RETURN, 9780340836897 CHECK-OUT, 9780345459855 , Nicolas RETURN, 9781466415089 CHECK-OUT, 9781439175927 , Tonya RETURN, 9781439175927 CHECK-OUT, 9781500118686 ,Philip RETURN, 9781442489332 RETURN, 9780345459855 CHECK-OUT, B00NUTJ2V6, Angelica CHECK-OUT, 9781563899294 , Edwin CHECK-OUT, 9781579126957 , Bonnie CHECK-OUT, 9780764203459 , Jasmine RETURN, 9781500118686 CHECK-OUT, 9781406315172 , Julie CHECK-OUT, 9781906931803 , Carly CHECK-OUT, BO7BNZHYLW, Jillian RETURN, 9781906931803