Practice problems on structures ------------------------------- Q1. Define a structure that simulates a complex number. It should have the two fields, real and imaginary. Implement the following functions: (a) Creating a complex number from two real values (b) Printing a complex number in a + b i format (c) Finding the length of a complex number (d) Finding the angle of a complex number (e) Adding two complex numbers (f) Multiplying two complex numbers (g) Returning the conjugate of a complex number Q2. Define a structure line segment that contains two points, which are themselves structures. A point structure contains two fields, x and y. Implement the following functions: (a) Find the slope (b) Find the intercept (c) Find the length (d) Find if two line segments intersect Q3. Define a structure student that has two fields, roll and name. Name is a char *. Implement the following functions: (a) Create a student given a roll number and a name (allocate space properly) (b) Copy a student (allocate space properly) (c) Search for a substring in the name