Question: #include Triangle.h #include Rectangle.h #include Pentagon.h #include using namespace std; Triangle resize ( Triangle t , int s ) { / /
#include "Triangle.h
#include "Rectangle.h
#include "Pentagon.h
#include
using namespace std;
Triangle resizeTriangle t int s
Placeholder Triangle. Replace the line below with
an appropriate contructor call.
Triangle newTri;
Your code here
return newTri;
Rectangle resizeRectangle r int s
Placeholder Rectangle. Replace the line below with
an appropriate contructor call.
Rectangle newRect;
Your code here
return newRect;
Pentagon resizePentagon p int s
Placeholder Pentagon. Replace the line below with
an appropriate contructor call.
Pentagon newPent;
Your code here
return newPent;
int main
Triangle t Triangle;
Rectangle r Rectangle;
Pentagon p Pentagon;
auto newTriangle resizet;
auto newRectangle resizer;
auto newPentagon resizep;
cout "Resized Triangle Dimensions: ;
newTriangle.printTri;
cout "Resized Rectangle Dimensions: ;
newRectangle.printRect;
cout "Resized Pentagon Dimensions: ;
newPentagon.printPent;
return ;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
