Objectives
• Review classes and OOP
• Review inheritance and polymorphism
• Review overriding superclass method(s) in subclasses
Problem Specification
Write a Python application to keep track of a library’s collection of materials. The collection will be read from an input file; users should be able to display a list of materials and check out materials using the materials’ call numbers.
The library materials are either books or periodicals. The information stored for each type of library material is
shown below.
All library materials have a call number, and can be checked out. The date checked out should be the current
date, and the due date depends on the type of material (21 days after current date for books; 7 days for
periodicals). When displaying the item, show the specific information, along with the call number, whether or
not the item is checked out, and if checked out, the check-out and due dates (see example output below).
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
30 | 31 | 1 | 2 | 3 | 4 | 5 |
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 | 1 | 2 | 3 |
Get Free Quote!
340 Experts Online