Question: Write a C++ class definition for a triangle class. The class should have the following members: Side1, side2 and side 3 Area function to compute

Write a C++ class definition for a triangle class. The class should have the following members:

Side1, side2 and side 3

Area function to compute the area of the triangle

Perimeter function to compute the perimeter of the triangle

Print function to print the area, perimeter and the sides

Appropriate constructors

A main function to test the class functions

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!