Sorry guys... I am new to the forum, will post my code alongwith any questions i have in the future...To clarify, I just wanted an idea to start off my code with, not any ready-made code to copy-paste into any hypothetical homework..
And, that newness was one of the things that made it seem suspicious. Also, sometimes, we can be hard on folks, so let me offer my apologies if I came off as harsh. I know it sounds a little snarky, but it's worth checking out the resources in the post above my last. It'll keep wiseguys like me from jumping on you.