1. (50 points) Write a program to calculate the area and perimeter for one of 3 shapes: Triangle, Circle, and Square. As

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
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

Post 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 17 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.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply