Page 1 of 1

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
by answerhappygod
1 50 Points Write A Program To Calculate The Area And Perimeter For One Of 3 Shapes Triangle Circle And Square As 1
1 50 Points Write A Program To Calculate The Area And Perimeter For One Of 3 Shapes Triangle Circle And Square As 1 (65.18 KiB) Viewed 18 times
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.