This should be done in MATLAB. Please make sure I can understand where everything goes. thank you!
OT Objective Writing and calling functions Project In keeping with the idea that as engineers we are often called upon to cal- culate areas and volumes of odd shapes, you have been asked to design a heat exchanger. In its simplest form it is a cylinder that has many smaller cylinder drilled out of it. Fluids at different temperatures run through these pipes and the heat is transferred from one set to the other. The conductive heat transfer rate is determined in part by the surface area of the cylinder and its volume. Thus you will need to calculate these two parameters. Assume that the smaller drilled out tubes are all identical in size and that the user knows not to drill out more volume than the outer cylinder The volume of a cylinder is V(r, h) = arah and the surface area (of just the sides ig- noring the ends) SA = 2nrh Write a program to calculate the volume and surface area of a heat exchanger. Your program should prompt the user for the height, the outer radius, the inner radius (what is removed) and the number of in- ner cylinders that are removed. The overall volume will be the outer vol- ume minus the inside drilled out regions. But the surface area will be the outer sur- face area plus the surface area of all of the inside drilled out regions. The program must print the dimensions that were entered by the user and the results of the calculations. Use functions to print the header information, perform the inputs, and print the results. Your program must be well documented with comments including the intro- ductory comments consisting of your name, the date, and a description of the program. h % function project_50 % PROJECT_5 project_50) Calculates the volume and the surface area of an heat exchanger created by boring cylindrical tunnels through a cylindrical object % Remember to customize the name of the project (use your own initials) and add any comments that will help someone understand your program. % All multiplications, divisions, and exponentiations must use the dot operator All code should be tabbed in once (as the template shows) and aligned % Name: % Date: % CMPSC 200 X * Print the splash screen by calling the print_splash_screen function This is a single functon call - DO NOT HAVE ANY fprintf STATEMENTS HERE % call the getData function that has the user enter the inputs X This is a single functon call - DO NOT HAVE ANY input STATEMENTS HERE Calculate the volume Calculate the Surface Area % % % % Print the results by passing the two radii, the height, the number of inner cylinders, the volume and the surface ares to a printResults function DO NOT HAVE ANY fprintf STATEMENTS HERE This is a single line function call end % Function Definitions function print_splash_screen(progDate, desc) % eae end function [r_outer, r_inner, height] = getData() end function printResults(r_outer, r_inner, height, num pipes, volume, surface_area) % % % % All of the last printing (using fprintf) goes here end