Best writers. Best papers. Let professionals take care of your academic papers

Order a similar paper and get 15% discount on your first order with us
Use the following coupon "FIRST15"
ORDER NOW

Rectangle class that has the following member variables: •        length •        width

Rectangle class that has the following member

variables:

•        length

•        width

The class should have the following member functions:

•        Default constructor that sets length and width to 0.0

•        Constructor that accepts the length and width as arguments

•        setLength, a mutator function for the length variable

•        getLength, an accessor function for the length variable

•        setWidth, a mutator function for the width variable

•        getWidth, an accessor function for the width variable

•        calculateArea, returns area, which is calculated as area = length × width

•        calculatePerimeter, returns perimeter, which is calculated as perimeter = 2 × length + 2 × width

Need help getting this started and how to set up the rest of the class and parameters

 
Looking for a Similar Assignment? Order now and Get 10% Discount! Use Coupon Code "Newclient"