Question: Given class Triangle ( in files Triangle.h and Triangle.cpp ) , complete main ( ) to read and set the base and height of triangle
Given class Triangle in files Triangle.h and Triangle.cpp complete main to read and set the base and height of triangle and of triangle determine which triangle's area is larger, and output that triangle's info, making use of Triangle's relevant member functions.
Ex: If the input is:
where is triangles base, is triangles height, is triangles base, and is triangles height, the output is:
Triangle with larger area: Base: Height: Area:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
