in this exercise you use the rectangle class from lab 15 2 to instantiate a rectangle object in the all around fence company program if necessary create a new project named intermediate 14 project copy the instructions from the lab15 2 rectangle h fil

//intermediate 13 recatangle.h

Create a class name recatangle

//class declartion section

class rectangle

{

it has member data length and width

private:

double length; //member data

double width ; //member data

public

default constructor and member functions

rectangle ();//constructor

//member function that assigns values for member data

void setDimensions(double,double);

//memeber function that return Area

double calcArea();

//member function that returns Perimeter

int calcPerimeter();

};

//class implementation section

default constructor that initializes memeber data

rectangle ::setDeimensions(double len, double wid)// member function thtat assigns valuesfor

data members

{

if (len>0.0&&wid>0.0)

{

length =len;

width= wid

}

}

Member function definition that return Area

double Rectangke :: calcArea()

//Member Function that returns Area of the Rectangle object

{

return (int)(2*(length + width ));

}

//intermediate 13.cpp

/**************************************

program to calculate Perimeter and total fence cost of a rectangle yard

***************************************/

Include header files and intermediate 13 Rectangle.h file

#include //header file

#include //header file

#include // header file

#include “intermediate 13 rectangle.h”//class definition header file

using namespace std;

int main()

{

Declare variables

//variable declaration

double length,width

int perimeter

double fencecost, totalprice;

input yard length, yard width and fence cost per linear foot

cout<<“Enter Yard Length(in feet):”;

cin>>length;// input Yard Length

cout<<“nEnter Yard Wodth (in feet):”;

cin>> width; //Input yard Width

cout<<“nEnter Fence Cost (per linear foot ):”;

cin>> Fencecost ; //Input Fence cost per linear foot

Assign input values for length and width of the Rectangle //object

obj.setDimension(length,Width);

Calculate Perimeter of the rectangular Yard

//Calculate Perimeter of the Rectangle Object

Peromter = obj.calcPerimeter();

Calculate total cost of installing a fence

totalprice = fencecost*perimeter;

Dsisplay Perimter of the yard

// Display perimeter of the rectangular Yard

cout<< “nPerimeter of the fence:”<<perimeter

<<endl;

Display total Cost of installing a fence

//Display Total price: $”<<setprecision(2)<<fixed

<<totalprice<<endl;

system (“pause”);

}

I cant get it to work