Answered step by step
Verified Expert Solution
Link Copied!

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 books[10](a fixed-size 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

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

Oracle 10g SQL

Authors: Joan Casteel, Lannes Morris Murphy

1st Edition

141883629X, 9781418836290

More Books

Students also viewed these Databases questions