#include <iostream>
#include <string>
using namespace std;
class Books {
private:
string title;
float size_h;
float size_w;
int number_of_pages;
public:
int year;
string author;
Books(string t, float h, float w, int pages, int y, string a) {
title = t;
size_h = h;
size_w = w;
number_of_pages = pages;
year = y;
author = a;
}
void getData() {
cout << "Title: " << title << endl;
cout << "Height: " << size_h << " units" << endl;
cout << "Width: " << size_w << " units" << endl;
cout << "Number of Pages: " << number_of_pages << endl;
cout << "Year: " << year << endl;
cout << "Author: " << author << endl;
}
};
int main() {
Books book1("The Great Gatsby", 8.0, 5.0, 218, 1925, "F. Scott Fitzgerald");
Books book2("1984", 7.5, 4.5, 328, 1949, "George Orwell");
cout << "Book 1 details:" << endl;
book1.getData();
cout << endl;
cout << "Book 2 details:" << endl;
book2.ge
tData();
cout << endl;
return 0;
}