Hello,
I do this kind of small assignments all the time, please visit my profile.
I am a C tutor, I have 5 years of experience, I can solve and then help you understand everything that I have done.
When you have the time, give me more details.
Thank you,
George