Question: Part 1: Write a MATLAB function that will return the area and perimeter of a hexagon when it receives the distance R (from the center
Part 1: Write a MATLAB function that will return the area and perimeter of a hexagon when it receives the distance R (from the center to a vertex). Submit the flowchart, listing, and a sample run for R = 1. Part 2: Write a script file that will determine and output the surface area of a pool noodle as the distance from the center to a vertex of the hexagonal hole and the length of the noodle vary. The user will input the distance from the center to the vertex (RO) of the outer hexagon. The program will create a table for the distance from the center to the vertex (RI) of the hexagonal hole varying from RO/5 to 4RO/5 by RO/5, with the length varying from 3 feet to 6 feet by 0.5 feet. Sample output is provided below to help you develop your code. Your script file must call the function created in Part 1 to determine the area and perimeter of the both the outer hexagon and the inner hexagon for use in determining the surface area. Do not write a separate function for the two hexagons (once you have the function from PART 1 working correctly you will not need to edit it to use it for the different values of R). Submit flowchart, listing, and sample output for a noodle with RO = 3.0 inches.

Command Window New to MATLAB? Watch this Video see Examples or read Getting Started. RI Trial>> Practice4HexNoodle Enter the radius of the outer hexagon in inches: 3.0 RO Surface Area (in^2) f a Hexag nal Po1 Noodle with outer radius of 3.00 in RI (11) 0.60 1.20 1.80 2.40 L (ft) 3.0 3.5 4.0 4.5 5.0 5.5 6.0 822. 49 952. 09 1081. 69 1211.29 1340. 89 1470.49 1600.09 946.48 1097.68 1248.88 1400.08 1551.28 1702.48 1853. 68 1066.73 1239.53 1412.33 1585.13 1757.93 1930.73 2103.53 1183.2 4 1377.64 1572.04 1766.44 1960.84 2155.24 2349.64 t Trial>> Command Window New to MATLAB? Watch this Video see Examples or read Getting Started. RI Trial>> Practice4HexNoodle Enter the radius of the outer hexagon in inches: 3.0 RO Surface Area (in^2) f a Hexag nal Po1 Noodle with outer radius of 3.00 in RI (11) 0.60 1.20 1.80 2.40 L (ft) 3.0 3.5 4.0 4.5 5.0 5.5 6.0 822. 49 952. 09 1081. 69 1211.29 1340. 89 1470.49 1600.09 946.48 1097.68 1248.88 1400.08 1551.28 1702.48 1853. 68 1066.73 1239.53 1412.33 1585.13 1757.93 1930.73 2103.53 1183.2 4 1377.64 1572.04 1766.44 1960.84 2155.24 2349.64 t Trial>>
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
