yanamada22:
I am following instructions that tell me to use an interrupt. I just cant figure it out.
Do you mean that this is an academic exercise and your tutor has instructed you to use interrupts in your solution? It's possible, but not a particularly sensible way to tackle the problem.