Class Work Function Name Date 1 te four functions that will
Solution
/*
* Area.h
*
* Created on: Nov 20, 2016
* Author: sontosh
*/
#ifndef AREA_H_
#define AREA_H_
#include<stdio.h>
#include <iostream>
using namespace std;
class Area {
public:
Area();
virtual ~Area();
int main(){
float side, area, perimeter;
ReadSide(side);
CalcArea(side);
Perimeter(side);
Estimation(area,perimeter);
}
float ReadSide(float side){
cout<<\"Enter sides of the square\";
cin>>side;
}
float CalcArea(float side){
cout<<\"area of the figure is\"<<endl;
cout<<side*side<<endl;
}
float Perimeter(float side){
cout<<\"peri of the figure\"<<endl;
cout<<4*side<<endl;
}
float Estimation(float area,float perimeter){
cout<<\"estimation for the room\"<<endl;
cout<<area<<perimeter<<endl;
cout<<\"required carpet is \"+area+\"sq ft\";<<endl;
}
};
#endif /* AREA_H_ */
