Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++ 2PM: Design a C++ class and submit it as part of a header file. (12 points) Submit a header file that includes the interface

C++
image text in transcribed
2PM: Design a C++ class and submit it as part of a header file. (12 points) Submit a header file that includes the interface of the class BookStore Specifically, a BookStore object manages the following vital information of a bookstore 1. the location of a book store 2 the year when the store was established 3 the number of employees 4 a collection of books available at a store. Please use the following data type Book struct Bookl string title string language string firstAuthor, For your BookStore class, please include the folowng member functions (no need to implement them as you are working in a header file) 1. a defaut constructor 2 another constructor that allows one to provide the initial value of a store's location 3 a read-only member function to return the store's year of estabishment 4 a member function called addANewBook that allows one to add a new book to the store's collection Your submitted header file will include the following content 1 complation directives (aitndet) 2 a list of ibraries to include 3 (optional) copy & paste the struct Book above 4 the class BookStore

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

Introduction To Constraint Databases

Authors: Peter Revesz

1st Edition

1441931554, 978-1441931559

More Books

Students also viewed these Databases questions