A regular polygon is an n-sided polygon in which all sides are of the same length and
Question:
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 is
Write a method that returns the area of a regular polygon using the following header:public static double?area(int?n,?double?side)Write a main method that prompts the user to enter the number of sides and the side of a regular polygon and displays its area. Here is a sample run:
Transcribed Image Text:
пXs? Area TT 4 X tan п - Enter Enter the number of sides: 5 Enter the side: 6.5 Enter The area of the polygon is 72.69017017488385
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Answer rating: 66% (12 reviews)
Sample output Enter the number of sides 5 Enter the side 65 The area of the polygon is 7269017017488...View the full answer
Answered By
Ashington Waweru
I am a lecturer, research writer and also a qualified financial analyst and accountant. I am qualified and articulate in many disciplines including English, Accounting, Finance, Quantitative spreadsheet analysis, Economics, and Statistics. I am an expert with sixteen years of experience in online industry-related work. I have a master's in business administration and a bachelor’s degree in education, accounting, and economics options.
I am a writer and proofreading expert with sixteen years of experience in online writing, proofreading, and text editing. I have vast knowledge and experience in writing techniques and styles such as APA, ASA, MLA, Chicago, Turabian, IEEE, and many others.
I am also an online blogger and research writer with sixteen years of writing and proofreading articles and reports. I have written many scripts and articles for blogs, and I also specialize in search engine
I have sixteen years of experience in Excel data entry, Excel data analysis, R-studio quantitative analysis, SPSS quantitative analysis, research writing, and proofreading articles and reports. I will deliver the highest quality online and offline Excel, R, SPSS, and other spreadsheet solutions within your operational deadlines. I have also compiled many original Excel quantitative and text spreadsheets which solve client’s problems in my research writing career.
I have extensive enterprise resource planning accounting, financial modeling, financial reporting, and company analysis: customer relationship management, enterprise resource planning, financial accounting projects, and corporate finance.
I am articulate in psychology, engineering, nursing, counseling, project management, accounting, finance, quantitative spreadsheet analysis, statistical and economic analysis, among many other industry fields and academic disciplines. I work to solve problems and provide accurate and credible solutions and research reports in all industries in the global economy.
I have taught and conducted masters and Ph.D. thesis research for specialists in Quantitative finance, Financial Accounting, Actuarial science, Macroeconomics, Microeconomics, Risk Management, Managerial Economics, Engineering Economics, Financial economics, Taxation and many other disciplines including water engineering, psychology, e-commerce, mechanical engineering, leadership and many others.
I have developed many courses on online websites like Teachable and Thinkific. I also developed an accounting reporting automation software project for Utafiti sacco located at ILRI Uthiru Kenya when I was working there in year 2001.
I am a mature, self-motivated worker who delivers high-quality, on-time reports which solve client’s problems accurately.
I have written many academic and professional industry research papers and tutored many clients from college to university undergraduate, master's and Ph.D. students, and corporate professionals. I anticipate your hiring me.
I know I will deliver the highest quality work you will find anywhere to award me your project work. Please note that I am looking for a long-term work relationship with you. I look forward to you delivering the best service to you.
3.00+
2+ Reviews
10+ Question Solved
Related Book For
Introduction to Java Programming, Comprehensive Version
ISBN: 978-0133761313
10th Edition
Authors: Y. Daniel Liang
Question Posted:
Students also viewed these Computer science questions
-
The length of each side of a regular polygon is 1.3 cm. The perimeter of the polygon is 10.4 cm. So (3) How many sides does a polygon have?
-
Write a program that repeatedly prompts the user to enter a capital for a state. Upon receiving the user input, the program reports whether the answer is correct. Assume that 50 states and their...
-
Write a sentinel loop that repeatedly prompts the user to enter a number and, once the number 1 is typed, displays the maximum and minimum numbers that the user entered. Here is a sample dialogue:...
-
Draw the BST that results when you insert the keys E A S Y QUE S T I O N in that order into an initially empty tree. What is the height of the resulting BST?
-
Determine whether x3 is O(g(x)) for each of these functions g(x). a) g(x) = x2 b) g(x) = x3 c) g(x) = x2 + x3 d) g(x) = x2 + x4 e) g(x) = 3x f ) g(x) = x3/2
-
Which species is most likely to be an example of a nido-borane? (a) B 10 H 14 (b) B 8 H 8 2 (c) B 4 H 10
-
Show that during the early part of the electron-positron annihilation era, the ratio of the electron number density to the photon number density scaled with temperature as \[\frac{n_{-}}{n_{\gamma}}...
-
Greg Davis, a business major at the University of South Carolina (USC), has opened Six Points Saco (SPS), a specialty subs-taco restaurant, at the rim of the USC campus. SPS has grown in popularity...
-
Abbey Lee is driving north to a dance competition for 3 hours at 46 miles per hour. Meanwhile, leaving from the same place, Cathy is driving to a different dance competition 2 hours south at 43 miles...
-
Consider Case Study 4.2 on page 170. Suppose 18 specimens were used for each type of paint in an experiment and the actual difference in mean drying time, turned out to be 1.0. (a) Does this seem to...
-
Use the methods in RandomCharacter in Listing 6.10 to print 100 uppercase letters and then 100 single digits, printing ten per line. LISTING 6. 10 RandomCharacter.java 1 public class RandomCharacter...
-
The area of a pentagon can be computed using the following formula: Write a method that returns the area of a pentagon using the following header:public static double?area(double?side)Write a main...
-
Solve each equation. + 10 10 -( 2) %3D 14
-
The great wall of China is the longest wall ever built. It is about 4, 000 miles long and 26 feet tall. Find its length in kilometers. 1 mi = 1.609 km = 5280 ft. Answer in units of km. 003 (part 2 of...
-
A ball rolls off a table going with an initial speed of 8.0 m/s horizontally. The table is 1.2 meters from the floor. Neglect air resistance. 1. How far from the table does the ball land? 2. At what...
-
A car has a mass of 1 2 0 0 kg is moving with a velocity of 4 0 m / s , If the engine stops and the car kept moving for 4 0 0 m , before it comes to a full stop. Calculate the coefficient of friction...
-
what resources are available to assist customers in self - servicing their lenovo products?
-
Could you elaborate on the strategic application of adaptive leadership models in overseeing organizational change, particularly focusing on strategies to alleviate resistance, cultivate resilience,...
-
Distinguish between the TDR and the CUDR. How is each determined?
-
What are some of the features of the Unified Process (UP)?
-
Redefine Tree24Node to add a reference to a nodes parent, as shown below: Add the following two new methods in Tree24: public Tree24Node getParent(Tree24Node node) Returns the parent for the...
-
Write a GUI program that animates the red-black tree insert, delete, and search methods, as shown in Figure 43.6. Dant D Red-Black Tree Animatio x + + c o...
-
Suppose that the TreeNode class defined in BST contains a reference to the nodes parent, as shown in Exercise 26.17. Implement the RBTree class to support this change. Write a test program that adds...
-
a) Assess five (5) top construction trends in Malaysian construction industry. (5 marks) b) Demand of construction industry is in various types and sizes. There will be different locations,...
-
My assignment is asking me to describe the plans that are employed by the organization and determine which managers created each type of plan. I have chosen to do the assignment on Apple Inc. Can I...
-
Cooper and Brandy are married and file a joint income tax return with two separate Schedule Cs. Cooper is an independent security specialist who spent $635 on uniforms during the year. His laundry...
Study smarter with the SolutionInn App