At first I thought you are including a ".cpp" file in a ".cpp" file until I say the class file and realized you have the wrong extension. For the class file it should ".h" or ".hpp" not ".cpp".
Sometimes the order of include files does not make any difference, but in this case it does. "iostream" should be followed by "rectangle.h" or ".hpp", so that the include files of "main" will cover anything that is needed in the header file.
double calculatePerimeter()
{
// write calculatePerimeter here
//how to call the value here???///
}
double calculateArea()
{
// write calculate Area here
//how to call the value here???///
}
Just write your calculation and return the answer. Being member functions of the class they have access to the private variables of the class, so just use the variables. There is no special way of call anything to access them.
Once you do the math for "perimeter" and "area" these variables will have a value and you could write a "get" function to retrieve their value, but it is not necessary for this program.