Is this not the same things you were asking in Arduino RFID Card System? Cross-posting is against the rules in the forum, as outlined in How to get the best out of this forum.
And not mentioning that this was homework originally? Shame on you. No one here is going to do your homework for you.
Homework
We get a lot of questions from students wanting help with their homework. Such questions are generally one of two kinds: Questions by students who are obviously making a real effort but have got stuck; these get helpful answers. Questions from students who are obviously not making any effort at all and just want someone to do their homework for them; these usually get a lecture. By all means, post homework questions when you are stuck, but make sure you've put some effort in first.