Starting from:
$30

$24

Lab 05 Solution

Objectives:




Classes and Data Abstraction



User-defined classes



Question:




In this assignment, you are asked to write the definition for a rectangle class and test it with the test program provided. The description of the rectangle class and the driver program are given on the attached file rectangle.cpp. Download the rectangle.cpp and without removing or changing any of the member functions or member variables of this class, complete 10 member functions bodies such that your program produces exact output as provided. You should keep the class definition and the main function in the same source file, and you are not allowed to use global variables. Your program should be well commented and in particular, begin with a series of comments specifying your name and lab number. (You should not change class definition or main function. Just complete the rest of the work.)

More products