Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Batch Avionics 6 is required to develop a Library Management Systems (LMS) using object-oriented programming concepts. Create a class named book with following attributes: book

Batch Avionics 6 is required to develop a Library Management Systems (LMS) using object-oriented programming concepts. Create a class named "book" with following attributes: book ID Title of the book Author of the book Status of the book (available or issued) // initially it will 1 (available), later it will be 0 when this book is issued to someone. student_Reg // initially it will be empty. Later, it will hold the registration number of that student to whom this book is issued. Create another class named "student" with following attributes: Name Surname Registration_Number Status of current student// A student can only issue one book to his name. So initially it will be 1 (no book issued to this student). Later, it will become 0 (book already issued). Create a child class named "LMS" derived from parent classes "student & book". It will have following functionalities: Issue_book() This method will issue a book to a student. You need to pass following to this method: i. List of available books ii. ID of book to be issued iii. List of students iv. Registration number of the student to whom the book is to be issued First you will check whether this book is available for issuing (check its status). You can write a method in book class to return status of the specific book. Second, you will check whether this student is available for issuing (check its status). You can write a method in student class to return status of the specific student. If both book and the student are available for issuing, issue the book to that particular student and make status of book and student unavailable (0). You will also need to maintain a record that which book is issue to which student by appending the registration of the student in the student_Reg list of the book. Return_book() This method will return a book. You need to pass following to this method: i. List of available books ii. ID of book to be returned iii. List of students First you will check whether this book is issued to someone or not. And if issued, then what is the registration number of the student. You can write a method in book class to return the registration number of that student. Make status of book and student available (1). You will also need to remove the registration number of student from the student_Reg list of that book

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

Modern Dental Assisting

Authors: Doni Bird, Debbie Robinson

13th Edition

978-0323624855, 0323624855

Students also viewed these Programming questions

Question

Draw a circle by using this code With PYTHON.Thank you while i

Answered: 1 week ago