Write a C++ code for Library Management System with following details. There are two types of listings,
Question:
Write a C++ code for Library Management System with following details. There are two types of listings,
Books and Magazines.
Books may have attributes like
title,
author,
bookNo
publisher,
stock, and
isRef.
Where author is an object of type class Author and isRef is used identify reference books. Reference books are not issuable.
Similarly Magazine must have an additional attribute of period e.g, daily, weekly, monthly. You have to devise solution for the datatype of attribute period. Magazines are not issuable.
Library users could either be a Student or Staff. Write classes for both in hierarchical manner and include attributes of your choice like name, email etc.
Finally create an issueList{} class which holds information of issued items with book and user information.
In main() method create an array of items and an array of users.
Write methods to add data of books and users.
Write method to issue library item.