Question: In my C# assignment, Given an n - sided regular polygon n , return the total sum of internal angles ( in degrees ) .

In my C# assignment, Given an n-sided regular polygon n, return the total sum of internal angles (in degrees).
n will always be greater than 2.
The formula (n -2) x 180 gives the sum of all the measures of the angles of an n-sided polygon.
The naming format for this assignment and ALL ASSIGNMENTS will be just like this
Define Main Structure: Create a class and a method SumPolygon
The SumPolygon method should accept one int as an argument and then return a value based on the formula above. Examples:
SumPolygon(3)180
SumPolygon(4)360
SumPolygon(6)720
Use the console to test input as a command line argument or hard code ints
Submit the following:
Source Code: The .cs file containing your application code.
Evaluation Criteria
Functionality: The application runs without errors. Test your application thoroughly to catch and fix any bugs.
Code Quality: The code should be well-organized, properly formatted, and include comments where necessary for clarity.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Accounting Questions!