Answered step by step
Verified Expert Solution
Question
1 Approved Answer
New to python need help with this, i am using python 3 so appreciate you do it in python 3 and send me a screenshot
New to python need help with this, i am using python 3 so appreciate you do it in python 3 and send me a screenshot
i ask the same question yesterday someone aswer it but when i put it in i get error
import math
r = input("Enter length from center : ")
s = 2*r*math.sin(math.radians(36))
area = 3*math.sqrt(3)*s*s/2.0
print ("Pentagon area :"+ str(area))
Section 3.2 3.1 (Geometry: area of a pentagon) Write a program that prompts the user to enter the length from the center of a pentagon to a vertex and computes the area of the pen- tagon, as shown in the following figure. 6 Chapter 3 Mathematical Functions, Strings, and Objects 3V3 The formula for computing the area of a pentagon is Area =-s2, where s is the length of a side. The side can be computed using the formula s = 2r sin where r is the length from the center of a pentagon to a vertex. Here is a sample runStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started