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

  Find the output displayed when the button is clicked

Determine the output displayed when the button is clicked

  Write program using array to show fifo queue

Write program using any language which uses the array to demonstrate simple FIFO queue with 10 job entering the queue and 5 jobs removed from the queue by the server.

  Explain a program for a military tank control system

required to design, implement and document a program for a Military Tank Control System to execute on a Windows based personal computer

  Now an electric resistor placed in the tank is turned on

an insulated rigid tank initially contains 1.4-kg saturated liquid water and water vapor at 200degc. at this state 25

  Write program using while loop to output squares of integers

Write a program that uses while loop to perform the following steps:Output the sum of all the even numbers between firstnum and secondnum inclusive. Output all the numbers and their squares between firstnum and secondnum inclusive.

  Create a base class that contains all of the properties

Create a base class (also called a superclass) that contains all of the properties that are common to both of these products. Create 2 derived classes (also called subclasses) that contain different kinds of sizes.

  Create application which gets customer account data

Some interest Credit Company gives loans to customers at 1.5 percent interest per month. Create the application which gets customer account data which includes the account number, customer name, and balance due.

  Write a solution to the fizzbuzz problem

Write a solution to the "FizzBuzz" problem. The FizzBuzz problem is a classic programming interview problem in which a range of numbers is examined to locate those numbers divisible by 3 and 5. If the number is divisible by 3, then print "Fizz." I..

  In software engineering one can find out different life

in software engineering one can find various life cycle models. some examples include the waterfall model agile

  Write a method occuson that checks the appointment

Implement a superclass Appointment and subclasses Onrtime, Daily and Monthly. An appointment has a description ( for example " See the dentist") and a date. Write a method occusOn(int year,int month, int day) that checks whether the appointment oc..

  What professional organizations might you join and websites

a write a 200- to 300-word short-answer response to the followingwhat professional organizations might you join and

  Computing first seven values of fibonacci number sequence

Write a program that uses a loop to compute the first seven values of the Fibonacci number sequence.

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