Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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 run

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_2

Step: 3

blur-text-image_3

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

Pro SQL Server Administration

Authors: Peter Carter

1st Edition

1484207106, 9781484207109

More Books

Students also viewed these Databases questions

Question

What information is conveyed by the budgetary fund balance account?

Answered: 1 week ago

Question

List out some inventory management techniques.

Answered: 1 week ago