Create a program that contains the following two functions: #Returns true if the sum of any two sides is greater than th
Posted: Fri Jul 08, 2022 6:43 am
Create a program that contains the following two functions: #Returns true if the sum of any two sides is greater than the third side. bool is Valid(side1, side2, side3): #Returns the area of the triangle. double area(sidel, side2, side3): Write a main function that reads three sides for a triangle and computes the area if the input is valid. Otherwise, it displays that the input is invalid. The formula for computing the area of a triangle is: s= (sidel+ side2+ side 3) 12 area= Vs(s side 1)(s www [ Here are some sample runs: Enter the first side: 1 Enter the second side: 3 Enter the third side: 1 Input is invalid side2)(s-side3)