The Rectangle has two data members upperLeft and lowerRight points, that represents upper left and lower right coordinates, respectively. Therefore a rectangle can be represented by a nested structure having two structures of the type POINTS as defined below.typedef struct{Point upperLeft;Point lowerRight;}Rectangle;
implement the following functions:a. float length (Rectangle rec); //returns the length of the rectangleb. float width (Rectangle rec); //returns the width of the rectanglec. float area (Rectangle rec); //returns the area of the rectangled. float perimeter(Rectangle rec); //returns the area of the rectangle
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here