1. (50 points) Write a program to calculate the area and perimeter for one of 3 shapes: Triangle, Circle, and Square. As
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
1. (50 points) Write a program to calculate the area and perimeter for one of 3 shapes: Triangle, Circle, and Square. As
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.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!