1 convert the algorithm for the pentagonal prism program andflowchart from workshop 5346461
1. Convert the algorithm for the pentagonal prism program andflowchart (from workshop)
to an algorithm which will work for an N-sided polygonal prism(N>=3). Allow the user
to enter the units for the measurements (e.g. feet, inches, mm, kmetc.) and have the
appropriate units output from the program (e.g. area in‘square feet’ or ‘feet^2’).
Output should include N (number of sides), L (depth or‘length’ of prism along its axis),
SL (the length of one side of the polygon), surface area, andvolume. N should be
displayed as an integer; L and SL as real numbers with 1 digit tothe right of the decimal;
surface area displayed with 2 digits to the right of the decimal;volume displayed with 3
digits to the right of the decimal. Submit the flowchart, theprogram listing, and output
for the following input values:
a. Units: in
N=4
SL = 1
L = 1
b. Units: mm
N: 8
SL: 2
L: 5
2. Submit the final flowchart and MATLAB program listing for the‘temperature conversion’
program described in the voiceover files. Submit the program outputfor the following
input values, where the output values are displayed with 1 digit tothe right of the
decimal place:
a. -15 F
b. 104 C