A regular polygon with sides measuring 2.8cm has an area of 103.38cm^2. Determine the number of the diagonals of the polygon
Total area 103.38 divided by n is area of each triangle. This is also equal to 1.4h. We know that tan(theta)=1.4/h. Therefore h can be rewritten as 1.4/tan(theta). Substitute.
Now we can say that 103.38(tan(theta))=1.4^2(n)
We also know 360/2theta = n
We're left with a simplified equation:
theta(tan(theta))=3.413 (very close to 2+sqroot2), basically y=xtanx.
We can plot this and arrive at theta=13.85 degrees
So 360/2*13.85=13 sides
That was the hard part.
The number of diagonals is n(n-3)/2=65.
A regular polygon is an n-sided polygon in which all sides are of the same length and all angles have the same degree (i.e., the polygon is both equilateral and equiangular). The formula for computing the area of a regular polygon isArea =Here, s is the length of a side. Write a program that prompts the user to enter the number of sides and their length of a regular polygon and displays its area. Here is a sample run:
//include comments Opts (Regular polygon) An n-sided regular polygon has n sides of the same length and all angles have the same degree (i.e., the polygon is both equilateral and equiangular). Design a class named RegularPolygon that contains: Aprivate int data field named n that defines the number of sides in the polygon with default value 3. A private double data field named side that stores the length of the side with default value 1. A private double data field...
Write a simple class representing a Polygon up to 6 sides: the Polygon class has 5 fields: Regular, sides, sideLength, angle, apothem Polygon: Regular: boolean sides: int sideLength: double angle : double apothem : double Provide a no-arg constructor for this class initializes the object and sets the instance variables to: Regular: true sides: 3 sideLength: 1 angle : 60 apothem : SquareRoot(3)/2 Provide the following methods: Set number of sides set the length of the sides set the angle...
Problem 2 9.9 Geometry: n-sided regular polygon pg. 362 (25 points) Follow instructions as provided on page 362, reprinted below 9.9 (Geometry: n-sided regular polygon) In an n-sided regular polygon, all sides have the same length and all angles have the same degree (i.e., the polygon is both equilateral and equiangular) Design a class named RegularPolygon that contains A private int data field named n that defines the number of sides in the polygon with default value of 3 A...
(Geometry: n-sided regular polygon) An n-sided regular polygon’s sides all have the same length and all of its angles have the same degree (i.e., the polygon is both equilateral and equiangular). Design a class named RegularPolygon that contains: ■ A private int data field named n that defines the number of sides in the polygon. ■ A private float data field named side that stores the length of the side. ■ A private float data field named x that defines...
Java Turtles Drawing A Regular Polygon Write the code to have the turtle draw a regular polygon with the specified number of sides and specified side length. Draw the Specified number of regular polygons, each starting at the same place, however, after each polygon is drawn the turtle turns 360 / numpolys degrees
Write a program that displays a convex regular polygon with m or n sides, where m is the last digit of your student number plus 3, n is the second last digit plus 3. Use two buttons named “before” and “after” to change the number of sides of the polygon. Click on “before” button will show a convex regular polygon with m sides and click on “after” will show a convex regular polygon with n sides. For example, a student...
MATLAB Write a function that calculates the area of a regular polygon if given the numbers of sides and length of a side.
Each central angle of a regular polygon measures 0.9o. How many sides does the polygon have?
If the measure of one interior angle of regular polygon is 140 degrees how many sides does the polygon have?