Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a python program for managing media check-out/check-in with members (i.e. in a library) There are two types of Media objects - Book and Video:

image text in transcribed
image text in transcribed
Create a python program for managing media check-out/check-in with members (i.e. in a library) There are two types of Media objects - Book and Video: Book-title, author, publisher, number of pages. Video -title, author, publisher, running time. There is a Member object: Member object has name and can checkOut0 and checkIn0 books and videos. If a book or a video is already checked out, then it cannot be checked out again until it is checked back in. Display a confirmation message during check-out/check-in by showing the name of the member and the information of the media. . Store a list of checked out items for a member and create a method to display it. To provide general information about the media and members: Keep track of how many books and videos are there and how many are checked out. Keep track of number of members Coding Requirements: You are to create object oriented code and keep all attributes within the objects Your code is to use demonstrate the concept of OOP- "encapsulation, inheritance, polymorphism" You are to implement the print method so that you can display the contents of the object. . Names used for attributes and methods are to be meaningful and easy to understand. A member shall only be allowed to check out 2 items at once. Hints: Media is a superclass of Book and Video - There is no need to create a library class. All common attributes and methods should be placed in the superclass. Anything specific to the subclasses should be stored and implemented in the subclasses. Consider what information should be stored in instance attributes and what in class attributes Create class methods for accessing class attributes. Members is a standalone class for keeping information about the member. . > You need to implement methods to enable the member to interact with books and videos by Follow good programming practices and make sure that your code includes plenty of comments. purposes as this will get confusing and makes the code hard to read. passing the instance object as argument (refer to class example.) - Refrain from reusing the same name for attributes/variables throughout the code for different To test your code, you must: Create instances of book, video, and member classes. Call the checkOut and checkin methods on each member. Call the printCheckedOutltems method to display the items checked out by a member. Call the checkOut method on a book/video that is already checked out by another member and verify that a message is displayed "The book /video is already checked out by member(name)" Create the displayStats method to display records of: Total number of books, and books checked out o o Total number of videos, and videos checked out o Total number of members

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

Advanced Oracle Solaris 11 System Administration

Authors: Bill Calkins

1st Edition

0133007170, 9780133007176

More Books

Students also viewed these Databases questions

Question

Q.1. Taxonomic classification of peafowl, Tiger and cow ?

Answered: 1 week ago

Question

Q .1. Different ways of testing the present adulterants ?

Answered: 1 week ago

Question

Q.1. Health issues caused by adulteration data ?

Answered: 1 week ago

Question

1. Traditional and modern methods of preserving food Articles ?

Answered: 1 week ago