Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

One limited example of how your classes might be used is: ` ` ` b 1 = Book ( 3 4 5 ,

One limited example of how your classes might be used is:
```
b1= Book("345", "Phantom Tollbooth", "Juster")
a1= Album("456","...And His Orchestra", "The Fastbacks")
m1= Movie("567", "Laputa", "Miyazaki")
print(b1.get_author())
print(a1.get_artist())
print(m1.get_director())
p1= Patron("abc", "Felicity")
p2= Patron("bcd", "Waldo")
lib = Library()
lib.add_library_item(b1)
lib.add_library_item(a1)
lib.add_patron(p1)
lib.add_patron(p2)
lib.check_out_library_item("bcd","456")
for _ in range(7):
lib.increment_current_date() # 7 days pass
lib.check_out_library_item("abc","567")
loc = a1.get_location()
lib.request_library_item("abc","456")
for _ in range(57):
lib.increment_current_date() # 57 days pass
p2_fine = p2.get_fine_amount()
lib.pay_fine("bcd", p2_fine)
lib.return_library_item("456")
```
You are responsible for testing all of the required functions to make sure they operate as specified.

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

Database Processing

Authors: David Kroenke

11th Edition

0132302675, 9780132302678

More Books

Students also viewed these Databases questions

Question

Did you check photos for quality and rights clearance?

Answered: 1 week ago

Question

Did you check the facts, their accuracy, and sources?

Answered: 1 week ago