Please help is very important and its for tomorrow!!!

Task: Code Assignment
Provide the definitions for the following class declaration and then write a program that demonstrates usage of each member function using the test data of 10 for width and 8 for
height. Remember to put your main program, class header and class source into separate files.
Only provide code for the methods specified in the class declaration. Note that the displayRectangle() method should output an appropriate ‘box’, its dimensions, area and perimeter to the screen.


class Rectangle
{
public:
Rectangle(int height, int width);
~Rectangle(void);

private:
int height;
int width;

public:

double getLength(void);
double getWidth(void);
double calculateArea(void);
double calculatePerimeter(void);

void displayRectangle(void);
};


Hint: Use the histogram code you provided in answer to an earlier exercise to display your rectangle as a ‘box’ of *s or other suitable characters.
Topic archived. No new replies allowed.