1. (50 points) Write a program to calculate the area and perimeter for one of 3 shapes: Triangle, Circle, and Square. As
Posted: Thu Jul 14, 2022 2:12 pm
1. (50 points) Write a program to calculate the area and perimeter for one of 3 shapes: Triangle, Circle, and Square. Ask the user to choose a shape first, then ask some required parameters for the calculation. The formulas to calculate the perimeter and area are following: Triangle: P=a+b+c; A=s(s−a)(s−b)(s−c)s=P/2 Circle: P=2πRR is the radius The area and perimeter should display on the screen. Your screenshot should display all three shapes' calculations.