This is for the implementation of the Options 1 to 4 of the menu. For simplicity, we assume that the total number of books will not exceed 1000 within the program. To accommodate up to 1000 book records, consequently, you can declare an array of structures with this size in the main() of bookRecord.cpp. The array should originally contain five records in order to run the program before adding any new records. As a result, you need to declare and initialize the array with the five records as given below:
const int MAXRECORD = 1000;
struct bookRecord
{
string callNum;
string title;
double price;
int copyNum;
};
bookRecord bookRec[MAXRECORD]=
{"A010", "Harry Potter”, 79.95, 10,
“C101”, “eCommerce”, 115.48, 3,
"E180", "Digital Signal Processing", 68.45, 5,
"E486", "Optimal Control Systems”, 49.99, 2,
“S666”, “A Brief History of Time”, 15.25, 8};
Numbers and figures are an essential part of our world, necessary for almost everything we do every day. As important…
APPROVED BY CLIENTS
"assignmentexpert.com" is professional group of people in Math subjects! They did assignments in very high level of mathematical modelling in the best quality. Thanks a lot
Comments
Leave a comment