Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I was wondering if anyone could help me figure the code out in python? Thanks!! You have been hired by the Mathematics Department to develop

image text in transcribedI was wondering if anyone could help me figure the code out in python? Thanks!!

You have been hired by the Mathematics Department to develop an area and perimeter calculator for pentagons, hexagons, octagons, and decagons. To get you started on this important task, the Department Chair provided you with the following formulas: Let: A = area a = length of each side n = number of sides Perimeter = n* a Pentagon (5 Sides): A = V5(5+2 V5) a Hexagon (6 Sides): Octagon (8 Sides): A = 2 (1+12) A = a*V5+2 V5 Decagon (10 Sides): t asks the user for the length indian side and are states that are the perioder hora Using the information above, construct a program that asks the user for the length of a side and calculates the area and perimeter of a pentagon, mexagon, octagon, and decagon using the provided length. The area should be rounded to the nearest tenth (1.0). The perimeter should be Founded to the nearest hundreth (1.00). Below is a sample run of your program: Enter length of sides: 5 Area of Pentagon: 43.0 Perimeter of Pentagon: 25.00 Area of Hexagon: 65.0 Perimeter of Hexagon: 30.00 Area of Octagon: 120.7 Perimeter of Octagon: 40.00 Area of Decagon: 192.4 Perimeter of Decagon: 50.00

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle RMAN For Absolute Beginners

Authors: Darl Kuhn

1st Edition

1484207637, 9781484207635

More Books