/* Rafay Ahmad 23I-2526 */ #include #include using namespace std; class Library{ char* bookTitle; char* author; int bookID; int quantity; float price; static int totalBooks; public: Library(const Library& library) : bookID(bookID), quantity(quantity), price(price){ bookTitle = new char[strlen(library.bookTitle)+1]; strcpy(this->bookTitle, library.bookTitle); bookTitle = new char[strlen(library.author)+1]; strcpy(this->author, library.author); } char* getBookTitle(){ return bookTitle; } char* getAuthor(){ return author; } int getBookID(){ return bookID; } int getQuantity(){ return quantity; } float getPrice(){ return price; } void setBookTitle(char* title){ bookTitle = title; } void setAuthor(char* authorName){ author = authorName; } void setBookID(int id){ bookID = id; } void setQuantity(int q){ quantity = q; } void setPrice(float p){ price = p; } static void setTotalBooks(int totalBooks){ Library::totalBooks = totalBooks; } static int getTotalBooks(){ return Library::totalBooks; } void calcTotalPrice(){ cout<<"Total Price: "<price * this->quantity<