Question: c++ please Given class Triangle (in files Triangle h and Triangle cpp), complete main() toread and set the base and height of trianglet and of
Given class Triangle (in files Triangle h and Triangle cpp), complete main() toread and set the base and height of trianglet and of triangle2, determine which triangle's area is smaller, and output that triangles info, making use of Triangle's relevant member functions Ex: If the input is: 3.04.04.05.0 where 3.0 is triangle1's base, 40 is trlangle''s height, 4.0 is triangle2's base, and 5.0 is triangle2's height, the output is: Triangle with araller area: Baze: 3.00 Height: 4.00 Area: 6,00 9.26. 1: LAB: Triangle area comparison (classes)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
