Question: C++ .. please test and make sure it runs Assignment 4 - Triangles Building the Class In a header file named Triangle.h, and create the
Assignment 4 - Triangles Building the Class In a header file named Triangle.h", and create the class Triangle that contains: A public double array field for the sides (or three double fields). A public static constant double field narned TORAD that is assigned 0.01745329. A public static constant double field named TODEG that is assigned 57.2957795. O A public default constructor that sets the fields to 1. A public overloaded constructor that takes three (3) double parameters which should be a gred to the sides of the triangle if they are greater than 0. For any parameter that fails the condition, assign 1 to the side that is associated with the parameter. A public destructor. A public copy constructor. A public overloaded assignment operator. O A public double method named PerimeterO that takes no parameters. It should return the perimeter of the triangle. A public double method named Area() that takes no parameters. It should return the area of the triangle. A public string method named ToString() that takes no parameters. It should return a string that lists the fields separated by a space
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
