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: 71% (14 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
-
What does social responsibility mean to you? Does it apply to people as well as institutions? Describe three acts of social responsibility that you have seen, or performed, in the last month. q-1
-
Memminger Corporation purchased equipment on January 1, 1997. The terms of the purchase required that the company pay $1,000 in interest at the end of each year for five years and $20,000 at the end...
-
Newton Company introduced a line of laptop computers in 2016 that carry a 1-year assurance-type warranty. Based on experience with other computers that it sells, Newton estimated warranty costs as 3%...
-
Direct Labor Cost Budget Ace Racket Company manufactures two types of tennis rackets, the Junior and Pro Striker models. The production budget for July for the two rackets is as follows: Junior Pro...
-
Realco, a real estate developer, is proposing to obtain land and build a small mall that will house five stores. The five stores that lease the property will be responsible for all operating costs...
-
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...
-
The ordinary share capital of W Ltd (which is a trading company) is owned 30% by X Ltd, 25% by Y Ltd and 45% by Z Ltd. All companies are UK resident and prepare accounts to 31 March. Results for the...
-
Eliminate exhortations ,slogans, and targets for the work force that ask for zero defects and new levels of productivity A poster like "Quality depends on you" is facile and destructive. Management...
-
The Blue Ocean Strategy is a hypothesis that claims that corporations can achieve a competitive edge by creating entirely new markets, or blue oceans, where competition does not yet exist through...
-
Toni is a support worker and today she noticed that there appeared to be some tension in the work lunch room. Toni noticed that Lucinda and Jack were both behaving strangely. She didnt think anything...
-
Learning to collaborate with others is a talent that takes time to master, just like anything else we do. It's a process that happens gradually. One must put in time and effort to learn new material...
-
XYZ Company is a multinational corporation that specializes in manufacturing consumer electronics. The company recently faced a compliance failure that caused significant financial and reputational...
-
Write a paragraph about whether or not the doctrine of promissory estoppel should be applied to the situation involving Maureens promised graduation trip. Who would win if the doctrine were applied?
-
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...
-
(Present value)Sarah Wiggum would like to make a single investment and have $2.2 million at the time of her retirement in 35 years. She has found a mutual fund that will earn 7 percent annually. How...
-
Fraudulent financial reporting is an intentional misstatement or omission of amounts or disclosures with the intent to deceive users. Select one: True False
-
I am having trouble solving this problem on question #27. Can you please show me how to solve it step by step? Cost Mastery Problemi cost-Volume-Profit Analysis Cost Behavior Cover-to-Cover Company...
Study smarter with the SolutionInn App