Question: For the TwoDobjects project (Chup3~5~TwoDobject), provide an additional class for right triangle objects and call it CRtTriangles. This new class should use member variables m-Base
For the TwoDobjects project (Chup3~\5~TwoDobject), provide an additional class for right triangle objects and call it CRtTriangles. This new class should use member variables m-Base and m-Height to describe right triangles and should also contain appropriate functions for ShowSpecs, ShowArea and ShowPerim. Modify the function main to include creation of a CRtTriangles object called Triangl of comparable dimensions to the other objects. After outputting details for the Rectangl and Circl objects, use your CRtTriangles member functions to output the specs, area and perimeter of the Triangl object.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
