Answered step by step
Verified Expert Solution
Question
1 Approved Answer
In C + + : You are tasked with creating a simple Library Management System. The system should manage an inventory of books, where each
In C: You are tasked with creating a simple Library Management System. The system should manage an inventory of books, where each book is written by a specific author. Requirements Book Class Create a Book class with the following attributes: std::string title int year std::string author std::string genre Include appropriate constructors, accessors, and mutators. Library Class Create a Library class with the following attributes: Book booksa fixedsize array of Book objects int numBooks number of books in the library Include appropriate constructors, accessors, and mutators. Include a method to add a Book to the books array. Include a method to list all books in the library.
In C: You are tasked with creating a simple Library Management System. The system should manage an inventory of books, where each book is written by a specific author.
Requirements
Book Class
Create a Book class with the following attributes:
std::string title
int year
std::string author
std::string genre
Include appropriate constructors, accessors, and mutators.
Library Class
Create a Library class with the following attributes:
Book booksa fixedsize array of Book objects
int numBooks number of books in the library
Include appropriate constructors, accessors, and mutators.
Include a method to add a Book to the books array.
Include a method to list all books in the library.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started