So... You put your homework assignment directly in the thread, say "please", and we're supposed to do your homework for you? I don't think so. At least read the problem, find what you don't understand, and ask thoughtful questions about it. Such as: "I can't figure out how to read input. Can someone show me how to read user input from a command line?", "How do I sort records from Z to A?", or even "I haven't done a single bit of homework for this class yet, so I have no idea where to even start. Can someone point me to some good tutorials so I can learn how to write and compile C programs?"
Any of those types of questions would not only help us know what you are having problems with, but it allows us to actually help you rather than just giving you your entire assignment.