1. Take a structure point defined by
    typedef struct{
            float x;
            float y;
            } point;
    
    which represents a point in the plane. Define the structure triangle by
    typedef struct{
            point ver1;
            point ver2;
            point ver3;
            } triangle;
    
    which represents a triangle in the plane with vertices ver1, ver2 and ver3. Define a function Angle
    float Angle(triangle T, int i){
     ...
    }
    
    which calculates the angle of the triangle T at vertex veri (in degrees). Finally, write a program which prompts for three points in the plane and outputs the angles of the triangle which they determine.

  2. Write a program which finds the center of mass of two particles. First define a structure of type particle as
    typedef struct {
    double x;
    double y;
    double mass;
    } particle;
    
    which contains the x-coordinate, y-coordinate and the mass of particle. Then the program should prompt for coordinates and mass of two particles and return the center of mass of the system consisting of these two particles.

  3. Modify the determinant program so that it calculates the determinant by the cofactor expansion along the first column.
E-mail your solutions to milicic@math.utah.edu. This assignment is due Wednesday, April 30.