#include <iostream>
using namespace std;
class shop
{
public:
void setwidth(int i)
{
width = i;
}
void setheight(int h)
{
height = h;
}
protected:
int width;
int height;
};
class shapp
{
public:
int getcose(int area)
{
return (area*2);
}
};
class shap : public shop , public shapp
{
public:
int getarea()
{
return (width * height);
}
};
int main(void)
{
shap opp;
int area;
opp.setheight(1);
opp.setwidth(198);
area = opp.getarea();
cout<< "Total area: " << opp.getarea() << endl;
cout << "Total paint cost: $" << opp.getcose(area) << endl;
return 0;
};