PS 5
- Write a programme that creates a random vector of length three and prints it out. The elements of the vector should be pushed back in a function.
- Write a programme that creates two random vectors and compares them to see which is longer, it should print both out and say which is longer, use functions where possible.
- Write a programme that asks for the two components of a 2-vector and an angle and then rotates the vector by that angle. A 2X2 rotation matric has cosines on the diagonals and sine and minus sine on the off diagonals.
If you don't get your programme to compile write a comment saying it doesn't compile at the top of you code when you hand it in.