6. (Geometry: area of a pentagon) The area of a pentagon can be computed using the following formula (s is the length of a side): Area = 5x s² 4 X tanl TT

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter9: Records (struct)
Section: Chapter Questions
Problem 10SA
icon
Related questions
Question
100%

python, please

6.
(Geometry: area of a pentagon) The area of a pentagon can be computed using the
following formula (s is the length of a side):
Area =
5x s²
4 X tan
ㅠ
5
Write a program that prompts the user to enter the side of a pentagon and displays
the area. Here is a sample run:
Enter the side: 5.5 Enter
The area of the pentagon is 53.04444136781625
Transcribed Image Text:6. (Geometry: area of a pentagon) The area of a pentagon can be computed using the following formula (s is the length of a side): Area = 5x s² 4 X tan ㅠ 5 Write a program that prompts the user to enter the side of a pentagon and displays the area. Here is a sample run: Enter the side: 5.5 Enter The area of the pentagon is 53.04444136781625
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Binary numbers
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr