In Class - class

Create a class Rectangle.
  1. The class has attributes length and width, each of which defaults to 1.
  2. It has member functions to calculate the perimeter and the area of the rectangle.
  3. It has set and get functions for the attributes.
  4. Set should verify the attribute is a floating point number larger than 0.0 and less than 20.0.
  1. What is the class called.?
  2. What data members are in the class?
  3. What access modifier should the data member have?
  4. What member functions need to be defined?
  5. What does the prototype look like for the area member function?
  6. What does a get for length prototype look like?
  7. What does a set for length prototype look like?
  8. Write the function for area.
  9. How would the area function be invoked?
  10. Write the member function for setLength to enforce the data constraints.
  11. Do we need multiple (overloaded) functions for the contructor?
    It should be able to handle the following instances.
    Rectangle a;
    Rectangle b(20.0); // Set the length
    Rectangle c(10.0,10.0) // set the length and width

  12. Write the constructor
  13. What does the header file look like for this project??
  14. Write the member functions
  15. Write the main file.
  16. Compile the project and run it!