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...
icon
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
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
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
steps

Step by step

Solved in 3 steps

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
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…
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)
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
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY