Question: python programming Save program in a file called task1.py and the plan in a file called plan1.txt. Calculate the area of a regular polygon. A

python programming

Save program in a file called task1.py and the plan in a file called plan1.txt. Calculate the area of a regular polygon. A regular polygon is one in which all sides are the same length and the angles all have the same degree. The formula for the area of a regular polygon is

python programming Save program in a file called task1.py and the plan

where n is the number of sides and s is the length of each side. Prompt the user for the length and number of sides and display the result, with an appropriate message, to the user.

You must use the math modules for pi, tan(), and pow(). You must use different techniques for importing in order to use items from the module exactly as follows (with the appropriate parameters) in your code:

tan() math.pow() pi

Output should be rounded to 5 decimal places using the round() function.

Area = Axtar($) nx 82

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!