Question: C++ programming language States (45 pts) Work Programming Exercise 9.1 (class Rectangle) in the textbook on page 367. Additional specifications Use separate header and implementation
States (45 pts) Work Programming Exercise 9.1 (class Rectangle) in the textbook on page 367. Additional specifications Use separate header and implementation files. The main program (not the functions) should display the values of perimeter and area after calling the functions The problem refers to accessor (get) and mutator (set) functions for all the data fields. This means the following functions should be included o getHeight(); o getWidth(); o setHeight(); o setMidth(); Run the main program for two cases (each case has two rectangle): 1) Text example 4, H-40 for the first rectangle. W 3.5, H 35.9 for the second rectangle) 2) An additional example of your choice. The program output should include the length, width, area, and perimeter. Turn in printouts of o The main function o The class implementation file o The class header file o The results from running the program three times. o The class diagram (UML diagram) you may want to create this in Word or Excel
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
