Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a JavaScript that will display a polygon base on the given n-side . Then, the given n-sided regular polygon n, return the total sum

Create a JavaScript that will display a polygon base on the given n-side. Then, the given n-sided regular polygon n, return the total sum of internal angles (in degrees), display the polygon base on the given n-side, identify the polygon type.

Examples

sumPolygon(3) 180

sumPolygon(4) 360

sumPolygon(6) 720

Notes

n will always be greater than 2.

The formula (n - 2) x 180 gives the sum of all the measures of the angles of an n-sided polygon.

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

Step: 3

blur-text-image

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

Bioinformatics Databases And Systems

Authors: Stanley I. Letovsky

1st Edition

1475784058, 978-1475784053

More Books

Students also viewed these Databases questions

Question

Prepare for a successful job interview.

Answered: 1 week ago

Question

Describe barriers to effective listening.

Answered: 1 week ago

Question

List the guidelines for effective listening.

Answered: 1 week ago