Question: on matlab please 3. (20pts) Modify the previous script into a modular program that calls three functions area_cs, area_surf, and volume. The function area_cs takes
3. (20pts) Modify the previous script into a modular program that calls three functions area_cs, area_surf, and volume. The function area_cs takes radius as input argument and outputs cross-sectional area. The functions area_surf and volume both take radius and height as input arguments and output surface area and volume of the cylinder respectively. Again, the same sample output of question 2 should be generated. You must include the screenshot of the script file, and the function files. 4. (20 pts) Modify the previous script into a program by calling a function cylcalc that takes radius and height as input arguments and returns three outputs, area of cross-section, surface area, and volume. The same sample output of question 2 should be generated again. You must include the screenshot of the script file, and the function files. 3. (20pts) Modify the previous script into a modular program that calls three functions area_cs, area_surf, and volume. The function area_cs takes radius as input argument and outputs cross-sectional area. The functions area_surf and volume both take radius and height as input arguments and output surface area and volume of the cylinder respectively. Again, the same sample output of question 2 should be generated. You must include the screenshot of the script file, and the function files. 4. (20 pts) Modify the previous script into a program by calling a function cylcalc that takes radius and height as input arguments and returns three outputs, area of cross-section, surface area, and volume. The same sample output of question 2 should be generated again. You must include the screenshot of the script file, and the function files
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
