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

  1 for each parka obermeyer faces the situation of possibly

1. for each parka obermeyer faces the situation of possibly producing too much or too little compared to actual

  What does the abstract keyword do

Which parts of the assignment were you not able to complete fully? For each, explain why you were unable to complete this part and what steps you took to attempt to complete it. Give me as much detail as possible such that I may award partial cred..

  Create pseudocode for program to accept insurance data

Create a pseudocode for a program to accept insurance policy holder data, including a policy number, customer last name, customer first name, age, premium due month, day, and year,

  Writing a class

Build a class for a type called Fraction

  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.

  Write a program to find minimum and maximum values

Write a program to find minimum and maximum values for third-degree polynomials of the form:

  Program to inputs four numbers and graphs them as pie chart

Write down a program which inputs four numbers and graphs them as pie chart.

  Framework of the program

Write a program to read in up to 100 positive real values from a data file that everyone will name "p4data.dat" , output them in ascending order , calculate and print the average , the median , the variance , and the standard deviation . The..

  Write pseudo algorithm to input age

Write a pseudo algorithm that inputs Age, displays "Yes, you can vote" if Age is 18 or older and displays "You are too young to vote" if Age is less than 18.

  Write a prolog program that finds the last item in a list

Write a Prolog program that finds the last item in a list. Include a test query.

  Assignment - file access and flowcharts

Assignment - File Access and Flowcharts, The Output symbol is used to output data to a text file. When an Output symbol is reached during Raptor program execution, the system determines whether or not output has been redirected

  Program to swap values from variables

Given two int variables, firstPlaceWinner and secondPlaceWinner , write some code that swaps their values. Declare any additional variables as necessary.

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