"David" <d_***@shaw.ca> wrote in message
news:UQenc.419691$oR5.121352@pd7tw3no...
Don't know where to start
Problem:
Create a class Rectangle The class has attributes length and width, each
of which defaults to 1. It has member functions that calculate the perimeter
and the area of the rectangle. It has set and get function for both length
and width. The set functions should verify that length and width are each
floating point numbers larger than 0.0 and less than 20.0
Have you actually attended any classes or read any books? Honestly it's
really hard to imagine a C++ assignment that is much simpler.
Here's the deal, have a go yourself. Sounds like you will get some things
wrong, maybe you will get everything wrong. But that doesn't matter. When
you have had a go and get stuck come back here and post the code you have
written, then you will get help with it.
Alternatively at least say what you are stuck on, then at least we'd have a
question to answer, rather than just a request to do your homework for you.
john