Travis22,
jpanhalt has given you one way to create a delay of 1 second in his post #17 this is using a 4 MHZ crystal for timing. If you are using a different clock frequency you will have to change the loop counters (d1, d2,d3) There are many ways to create the delay. I have no idea what your equation "TIC = 1 + 3xyz + 4xy + 4x" means without you defining what TIC, x,y,z are. It would be easy for any one of us to write the code but that would not achieve anything. If none of you in the class can write the code then it will show the teaching is at fault.
Les.