Classic Store is a book store downtown that has been selling books in the town for a very long time and is quite known in the neighborhood. They have recently moved to digitalize their records onto the system. They need to add all the book details into the new system. Help the authorities to collect the book details and to display them using C++ programming. Use the concept of Constructors to create Book objects. Store the book details in an array and display the array in a table format. Write a C++ program to store the book details in an array as an array of Book objects and display them using constructors. Strictly adhere to the Object-Oriented specifications given in the problem statement. All class names, member variable names, and function names should be the same as specified in the problem statement. A class named Book has the following private data member variables. Data typeMember Name int id title string string string double category author price I| hcl.e-box.co.in is sharing your screen. Stop Define the following pubic member function in the Book class
Classic Store is a book store downtown that has been selling books in the town for a very long time and is quite known in the neighborhood. They have recently moved to digitalize their records onto the system. They need to add all the book details into the new system. Help the authorities to collect the book details and to display them using C++ programming. Use the concept of Constructors to create Book objects. Store the book details in an array and display the array in a table format. Write a C++ program to store the book details in an array as an array of Book objects and display them using constructors. Strictly adhere to the Object-Oriented specifications given in the problem statement. All class names, member variable names, and function names should be the same as specified in the problem statement. A class named Book has the following private data member variables. Data typeMember Name int id title string string string double category author price I| hcl.e-box.co.in is sharing your screen. Stop Define the following pubic member function in the Book class
Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
Related questions
Question
Book.cpp
Main.cpp
![Classic Store is a book store downtown that has been selling books in the town for a very
long time and is quite known in the neighborhood. They have recently moved to digitalize
their records onto the system. They need to add all the book details into the new
system. Help the authorities to collect the book details and to display them using C++
programming. Use the concept of Constructors to create Book objects. Store the book
3
details in an array and display the array in a table format.
Write a C++ program to store the book details in an array as an array of Book objects and
display them using constructors.
Strictly adhere to the Object-Oriented specifications given in the problem statement. All
class names, member variable names, and function names should be the same as
specified in the problem statement.
A class named Book has the following private data member variables.
Data typeMember Name
int
id
string
string
string
double
title
category
author
price
II hcl.e-box.co.in is sharing your screen.
Stop sharing
Define the following pubic member function in the Book class
P Type here to search
DELL
F3
F4
F5
F6
F7
F8
F9
F10
F1
%24
%
&
2
3
4
5
6
7
8
9
E
R
Y
U
******
T](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2Fd56bc97d-5420-4591-ac61-f9f0f5ee04b5%2F41a01aa5-349c-4e63-a851-b0957b30a821%2Fhkljvn_processed.jpeg&w=3840&q=75)
Transcribed Image Text:Classic Store is a book store downtown that has been selling books in the town for a very
long time and is quite known in the neighborhood. They have recently moved to digitalize
their records onto the system. They need to add all the book details into the new
system. Help the authorities to collect the book details and to display them using C++
programming. Use the concept of Constructors to create Book objects. Store the book
3
details in an array and display the array in a table format.
Write a C++ program to store the book details in an array as an array of Book objects and
display them using constructors.
Strictly adhere to the Object-Oriented specifications given in the problem statement. All
class names, member variable names, and function names should be the same as
specified in the problem statement.
A class named Book has the following private data member variables.
Data typeMember Name
int
id
string
string
string
double
title
category
author
price
II hcl.e-box.co.in is sharing your screen.
Stop sharing
Define the following pubic member function in the Book class
P Type here to search
DELL
F3
F4
F5
F6
F7
F8
F9
F10
F1
%24
%
&
2
3
4
5
6
7
8
9
E
R
Y
U
******
T
![In the Book class
Member Function
1
void display(Book bookArray[O, This method is used to display the book details of each
Description
int size)
2
book in the bookArray.
In the main method, obtain input from the user in the console and call the display
3
function to display the details.
4.
Refer to sample input and output for formatting specifications.
[All text in bold corresponds to input and rest corresponds to output]
Sample Input and Output 1:
Enter the number of books
2
Enter book 1 details
Enter the Book ID
1001
Enter the title
Harry Potter
Enter the category
Fiction
Enter the author
JK Rowling
Enter the price
999
hcl.e-box.co.in is sharing your screen.
Stop sharing
Enter book 2 det-ilc
e Type here to search
DELL
F1
F2
F3
F4
F5
F6
F7
F8
F9
F10
F11
&
%
5
%24
2
3
4
6
7
8.
Q
W
E
R
Y
S
D
F
G
H J K](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2Fd56bc97d-5420-4591-ac61-f9f0f5ee04b5%2F41a01aa5-349c-4e63-a851-b0957b30a821%2Foyiz8bg_processed.jpeg&w=3840&q=75)
Transcribed Image Text:In the Book class
Member Function
1
void display(Book bookArray[O, This method is used to display the book details of each
Description
int size)
2
book in the bookArray.
In the main method, obtain input from the user in the console and call the display
3
function to display the details.
4.
Refer to sample input and output for formatting specifications.
[All text in bold corresponds to input and rest corresponds to output]
Sample Input and Output 1:
Enter the number of books
2
Enter book 1 details
Enter the Book ID
1001
Enter the title
Harry Potter
Enter the category
Fiction
Enter the author
JK Rowling
Enter the price
999
hcl.e-box.co.in is sharing your screen.
Stop sharing
Enter book 2 det-ilc
e Type here to search
DELL
F1
F2
F3
F4
F5
F6
F7
F8
F9
F10
F11
&
%
5
%24
2
3
4
6
7
8.
Q
W
E
R
Y
S
D
F
G
H J K
Expert Solution
![](/static/compass_v2/shared-icons/check-mark.png)
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 3 steps
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
Recommended textbooks for you
![Computer Networking: A Top-Down Approach (7th Edi…](https://www.bartleby.com/isbn_cover_images/9780133594140/9780133594140_smallCoverImage.gif)
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
![Computer Organization and Design MIPS Edition, Fi…](https://www.bartleby.com/isbn_cover_images/9780124077263/9780124077263_smallCoverImage.gif)
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
![Network+ Guide to Networks (MindTap Course List)](https://www.bartleby.com/isbn_cover_images/9781337569330/9781337569330_smallCoverImage.gif)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
![Computer Networking: A Top-Down Approach (7th Edi…](https://www.bartleby.com/isbn_cover_images/9780133594140/9780133594140_smallCoverImage.gif)
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
![Computer Organization and Design MIPS Edition, Fi…](https://www.bartleby.com/isbn_cover_images/9780124077263/9780124077263_smallCoverImage.gif)
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
![Network+ Guide to Networks (MindTap Course List)](https://www.bartleby.com/isbn_cover_images/9781337569330/9781337569330_smallCoverImage.gif)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
![Concepts of Database Management](https://www.bartleby.com/isbn_cover_images/9781337093422/9781337093422_smallCoverImage.gif)
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
![Prelude to Programming](https://www.bartleby.com/isbn_cover_images/9780133750423/9780133750423_smallCoverImage.jpg)
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
![Sc Business Data Communications and Networking, T…](https://www.bartleby.com/isbn_cover_images/9781119368830/9781119368830_smallCoverImage.gif)
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY