Want to write a C# progm creating a Rectangle class to have two variables length and width. Two constructors are needed, the default constructor should intialize length and width to 1.0 each. The second must pass in two values to initialize length and width. There must be six methods to do the following: SetLength,SetWidth,GetLength,GetWidth, GetArea, and GetPerimeter.The perimeter is the sum of all sides of a rectangle. Three instances of the Rectangle needs to be created. The first rectOne must use the se
1
Expert's answer
2011-03-07T09:14:33-0500
using System;namespace Application { public class Rectangle { private double length; private double width;
Comments
You are always welcome!
We have a lot of experts ready for helping you.
Welcome))
Leave a comment