Question: Design class Triangle has (base, height) as a private data members and the following function + default constructor 2- Function inputo to input the triangle

 Design class Triangle has (base, height) as a private data members

Design class Triangle has (base, height) as a private data members and the following function + default constructor 2- Function inputo to input the triangle information 3 Function displayo to print triangle's values. And any other functions you think it required. In main function - create 2 of Triangle object and input the information of them. 2- display the area of all Triangle. Note: area of triangle ((1/2)*base height)

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!