Question: CODE IN c++ please thank you 15.28 LAB: Triangle area comparison (classes) Given class Triangle (in fises Jriaagle h and Triangle copp), complete manp to



15.28 LAB: Triangle area comparison (classes) Given class Triangle (in fises Jriaagle h and Triangle copp), complete manp to read and set the base and height of triangle1 and of trangle2. cetermine which triangle's area is malles, and output that triangles info, making use of Triangle s reavant member functicnsi Ex:lf the input is: 3.0.4.9 4.05.0 Where 3.0 is triangle1's base. 4.0 is triangle 15 helght, 4.0 is triangle2 base. and 5.0 is trianglez the hoht, the output is Triangle with atmallef aroa: Base 3,00 Helght: 4.00 Areat 6.00 The is makked as read only Current the Triangle.cpp = 1 ensclude "Iriangle.t" 2. Ninrlueo (Q) ) (f rowos Reod and set base and height for triantiez (ure seteuse() asd setheight()) cout \&s "friangle with sinller areat" \&s ensl: UC rooot peterwine smatler triangte (use Getareo()) // and outpot inotler triangte's info (use Printinfo()) return of Pun your progiam as ofteri as yougd we befoce suomitting for orading Below type wy needed input values in the fitst box thencick Run program and obserwe the programs oulpet in the second box
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
