Question: Python Exercise 1 Area of an Octagon ( 1 5 points ) Write a program that prompts the user to enter the side of an

Python Exercise 1
Area of an Octagon (15 points)
Write a program that prompts the user to enter the side of an octagon and displays its area. The area of an octagon is A=2(1+22)s2, where s is the side of an octagon. Assume that the side entered is positive, and do not import the math module (or use any predefined functions). Format your result to 5 decimal places.
Sample output is shown below:
Enter the side length of the octagon: 5.5
The area of an octagon with side length 5.5 is 146.05992
Calculating Energy (15 points)
The formula to compute the energy needed to heat water from an initial temperature to a final temperature is:
final temperature - initial temperature
 Python Exercise 1 Area of an Octagon (15 points) Write a

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!