A. Write the code for a function header of a function that calculates the area of a triangle and has one output argument (the area) and three input arguments (the three vertices of the triangle). (4pts) function triangle_area = calculate_triangle_area(vertex1, vertex2, vertex3)
B. Write the MATLAB code that uses a for loop (loops 4 times) to ask the user to enter three vertices, call the triangle function from question A, and create a matrix of four (4) triangular areas. After the loop executes, add up all the areas to get a total area and print the value to the screen. (8pts)