Answered step by step
Verified Expert Solution
Question
1 Approved Answer
write this in c# language ! Quickly plz Taski PART 1: Problem Description: The Triangle represented by three sides Design a class, name it Triangle
write this in c# language !
Quickly plz
Taski PART 1: Problem Description: The Triangle represented by three sides Design a class, name it Triangle 1 2 3 Side1 Side2 Side3 1 Triangle(String) Data Member Int: represent one of triangle sides Int: represent one of triangle sides Int: represent one of triangle sides Methods Add Constructor : 1. recive a string that represent the sides of the triangle 2. check if the string is able to represent a triangle format as (s1,52,53) 3. split the text to get the values ,values must be positive numbers (if not) throw an exception "Not valid Entries" 4. If the three values are positive values you have to check that the sum of any two sides is larger than the third (if not) : throw an exception "Not triangle" 2 Circumference Read Only property : return siden+side2+side 3 PART 2: Build a simple windows form that 1. Allow the user to insert the sides, the user have to insert values in this format: (51,52,53) and have to be notified if not. For example: (12,2,3): Not Triangle 2. (12,12,2) 3. Split each string that inserted based on the following delimiters:{'C','','') 4. Each item generated after the split have to be represent a side Form SIDE (S1.52.51) (12.2.2) Circunference Formi smes (51,52,52) Circunference (12,12,2) Not Trangle: Tebe a triangle the sum of wides Must be larger the the thud Circumference 26 CLEAR Forml x SIDES (51,52,53) (12,2) Circumference 26 Not valid Entries OKStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started