You are to write code for the application CalculatePerimeterwhere the computer calculates and displays the perimeter of atriangle, provided the three double values entered from keyboardinput represent a triangle. If they don’t, the computer shoulddisplay the fact that (at least, in the case of non-positive input)one of the values does not form a valid triangle. What makes avalid triangle? All sides must be positive and the sum of any twosides must be greater than the value of the third side. When anyside is non-positive, the machine should display a messageconveying the fact that all sides must have a positive value.
OR
OR