member2 = Member("Nitin", "Mumbai", 23, "DCBA4321", "STUD8765") print(member2) member1.viewBooks() member1.searchByTitle("Kafka On The Shore") member1.searchByTitle("Rich Dad Poor Dad") member1.searchByAuthor("Phil Knight") member1.searchByAuthor("Robert Kiyosaki") member1.searchByCategory("Fiction") member1.searchByCategory("Self Help") member1.searchByPublicationDate("2015") member1.searchByPublicationDate("2013") member1.reserveBook("Shoe Dog") member2.reserveBook("Kafka On The Shore") member1.viewBooks() lib.viewReservedBookItems() lib.viewIssuerInfo() member1.returnBook() member2.returnBook() member1.viewBooks() member2.reserveBook("Kafka On The Shore") member2.extendDates() lib.addMember("Mukesh", "Mumbai", "23", "PQRS6789", "STUD6789") lib.viewMembers() lib.searchMember("Mukesh") lib.removeMember("Niel") member1.reserveBook("Kafka On The Shore")
lib.addBookItem('Theory of Machines', 'SMNQS6664A', 'TM301') lib.addBookItem('Theory of Machines', 'SMNQS6664A', 'TM302') lib.viewBooks() lib.removeBookItem('SMNQS6664A') lib.viewBooks() lib.removeBook('Theory of Machines') lib.viewBooks() member1 = Member('Aditya', 'Indore', 24, '9424534453', 'ADI942') member2 = Member('Harish', 'Indore', 25, '9791457862', 'HAR979') print(member2) member1.viewBooks() member1.reserveBook('Thermodynamics') member2.reserveBook('Machine Design') member1.viewBooks() lib.viewissuedBookItems() lib.viewIssuerInfo() member1.returnBook() member2.returnBook() member1.viewBooks() member2.issuedBook('Thermodynamics') lib.addMember('Mayur', 'Indore', '23', '9179030140', 'MAY917') lib.viewMembers() lib.searchMember('Mayur') lib.removeMember('Harish') member1.reserveBook('Machine Design')
elif user_choice == 3: user = input("please enter your name:") m1.returnBook() print("\n") elif user_choice == 4: title = input("Enter the name of book: ") Catalog.searchByTitle(title) print("\n") elif user_choice == 5: Author = input("Enter the name of author: ") Catalog.searchByAuthor(Author) print("\n") elif user_choice == 6: name = input("Enter name of Member:") lib.searchMember(name) elif user_choice == 7: username = input("username: "******"now you can add book in library") print("\n") book_name = input("Enter the name of the book you want to add: ") quantity = int(input("Enter quantity of book to add: ")) author = input("Enter the name of author: ") rack = input("Enter rack number: ") publish_date = input("Enter the publish_date: ") pages = input("Enter the total number of page of book: ") lib.addBook(book_name, author, publish_date, pages) lib.addBookItem(book_name, quantity, rack) print("\n") elif user_choice == 8: