The program should read input from a data file named “triangles.txt” and using functions validate the data, check if a triangle is possible. Check what type of triangle it is and if it is has a right angle. Calculate the perimeter and area. Then output everything to a text file.