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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started