Question: Review Project: In C# You will design a class named Triangle. It has read-only properties that calculate the Perimeter and the Area of the Triangle.

Review Project: In C#

You will design a class named Triangle. It has read-only properties that calculate the Perimeter and the Area of the Triangle. The class has three boolean, read-only properties. The first is Equilateral, returning true if the Triangle is an equilateral and false otherwise. The second is Isosceles returning true if the Triangle is an isosceles triangle. The third is Valid that returns true if the sides can represent a valid Triangle. Otherwise, it returns false to indicate the values for the 3 sides cannot represent a valid triangle. The class also has properties for Side1, Side2, and Side3. The set accessors should verify that the corresponding side is a floating-point value greater than 0.0 and less than 20.0. If not, set the value to -99. The Triangle constructor will take the values corresponding to the lengths of the 3 sides. You will create a driver application to test the Triangle class. Make sure you use the names exactly as specified in this description as this defines the interface. You will submit a zipped folder of the entire solution to this assignment link.

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!