Assignment #4 - 97B

Assignment #4 - 97B



Assignment 4 
============

Weight 35
Due March 7th
E-Mail to HURK

In robotic and graphic, we often need to rotate an object from one 
position to another position.  In this assignment, you will write a
FORTRAN'90 program that will read a square matrix [MAT(N,N)], and display
the original matrix and the following shapes according to user's entries:

a) the rotated matrix 90 degrees clockwise

exple: if N = 3 and

1 2 3 7 4 1
MAT = 4 5 6 the rotated matrix
is: 8 5 2
7 8 9 9 6 3

b) the rotated matrix 90 degrees counter-clockwise

exple: if N = 3 and

1 2 3 3 6 9
MAT = 4 5 6 the rotated matrix
is: 2 5 8
7 8 9 1 4 7

c) (bonus: 5 points) If you feel ambitious you might include functions
to rotate the matrix 45 deg., and/or move it around within the designated
portion of the first quadrant. Be creative!!.

- Make sure that your variable names are representative of their use.

- Remember that your program should work for any value of N

- Comment your program so someone else (TA!) can easily understand what
  it does.

- Good luck.

Note:
This is the last FORTRAN 90 assignment - Turbo C is next!!

===============================================