Write a complete program to calculate the angle

Assignment Help Programming Languages
Reference no: EM13832230

Write a complete program to calculate the angle, the perimeter, the area, the radius of the inscribed circle, the radius of the circumscribed circle of a polygon, and the positive difference of the two radii given the input of the length of one side (s - double) and the number of sides (n - int) from the user and these equations:

angle = (180(n - 2))/n

perimeter = ns

area = 1/4ns2cot(π/n)

inscribed_radius = -1/2s cot (π/n)

circumscribed_radius = 1/2s csc(π/n)

cot(x) = 1/ tan(x)       csc(x) = 1/sin(x)

Reference no: EM13832230

Questions Cloud

Ecological environment or community and csr : Current approaches to the topic of CSR in ecological environment or Community and CSR - What kinds of data does it use to back up its argument?
Report the incident to the faa : Report the incident to the FAA (the other airline will be able to ascertain who made the report). Phone the president of the other airline and tell him what you heard. You are on neutral terms with that person as he is your competitor
Drawing lewis structures : 1. Determine the total number of valence electrons; for polyatomic ions remember to adjust for charge. 2. Arrange atoms in a skeleton structure and connect them with single bonds.
The amount the asset is carried at in the accounting record : A company disposes of equipment that it no longer uses in its business. The amount received by the company is more than the amount the asset is carried at in the accounting records. The company will report a(n)
Write a complete program to calculate the angle : Write a complete program to calculate the angle, the perimeter, the area, the radius of the inscribed circle, the radius of the circumscribed circle of a polygon, and the positive difference of the two radii given the input of the length of one si..
How much down payment will the person put down : A person wants to buy a house. The total fixed price for the house is $275,000. The person will put a down payment of 20%. The interest rate is 5.1% fixed for 30 year term. How much down payment will the person put down?  What is the monthly payment?..
Capital budgeting methods are presented : Assume that two gas stations are for sale with the following cash flows; CF1 is the Cash Flow in the first year, and CF2 is the Cash Flow in the second year. This is the time line and data used in calculating the Payback Period, Net Present Value, an..
Advantages and disadvantages of closed-end country funds : Discuss the advantages and disadvantages of closed-end country funds (CECFs) relative to American depository receipts (ADRs) as a means of international diversification. Why do you think closed-end country funds often trade at a premium or discount? ..
Supplies in bulk and has recently switched vendors : 7-29. Millbridge Hospital buys its supplies in bulk and has recently switched vendors. The first purchase Millbridge madewas for 500 boxes of gauze at $3.46 a box. The purchase had payment terms of 2/15 N/30. Millbridge earns four percenton its idle ..

Reviews

Write a Review

Programming Languages Questions & Answers

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd