#include using namespace std; #include #include int main() { cout<<"enter length of the square base "; double length; cin >> length; cout<<"height of pyramid "; double height; cin>>height; cout<<"please enter units of the above measurements= "; string str; cin>>str; getline (cin, str); cout<<"inches"; double triangle_height = sqrt(pow(height, 2) + pow(length/2, 2)); double triangle_area = 0.5*length*triangle_height; double pyramid_area = 4*triangle_area + length*length; //area calculated, now output cout<<"enter length of the base square= "<