Methods for cyclic class hierarchies
Problem Develop a program that assists a bookstore manager. The manager's program should keep a record for each book. The record must include information about the author, the book's title, its price, and its publication year. The information about the author includes author's name, year of birth, and a list of books written by this author.
Write programs that help the bookstore manager solve the following problems:
Find out how many books did some writer publish.
Produce a list of all books in his store written by modern authors - those born after 1940.
Find out which one of the two authors wrote more books.
Produce a list of all books some author published during the past three years.
Produce a list of all authors who published a book this year, if you have a list of all authors.
Produce a list of all authors who published books in the bookstore manager's list.