# (Solved) : Cupts Regular Polygon N Sides Inscribed Circle Radius R Area Perimeter Polygon Found Area Q46910946 . . .

\$9.00

using Matlab, write the following script . (cupts) for a regular polygon with n sides inscribed in a circle with a radius of r, the area and perimeter of a polygon are found by area = 5 nr2 sin () and perimeter = 2nr sin 6). Write a script that Call a function to prompt the user for the sides n and the radius r, where n is an integer greater than or equal to 3. The function should error-check to make sure that the user’s input n is an integer greater than or equal to 3. Call a function to calculate and return the area and perimeter of the regular polygon. • Call a function to print the results of the area and perimeter with the sides n and the radius r. Note: the solution to this problem involves four code files: one which acts as a main program (the script), and three for the function. Show transcribed image text . (cupts) for a regular polygon with n sides inscribed in a circle with a radius of r, the area and perimeter of a polygon are found by area = 5 nr2 sin () and perimeter = 2nr sin 6). Write a script that Call a function to prompt the user for the sides n and the radius r, where n is an integer greater than or equal to 3. The function should error-check to make sure that the user’s input n is an integer greater than or equal to 3. Call a function to calculate and return the area and perimeter of the regular polygon. • Call a function to print the results of the area and perimeter with the sides n and the radius r. Note: the solution to this problem involves four code files: one which acts as a main program (the script), and three for the function. . (cupts) for a regular polygon with n sides inscribed in a circle with a radius of r, the area and perimeter of a polygon are found by area = 5 nr2 sin () and perimeter = 2nr sin 6). Write a script that Call a function to prompt the user ... View full description