What's your problem with this page?
Basically you have to decide if you want to use scanf() or write your own validation function. From your assignment description it seems you have to write your own, right?
Do you know already how strings work in C and how to get them from the user?
Bye, Andreas