I will provide the full working code, along with the output!
Being an engineering student, my knowledge about the subject is more than adequate and I am pretty sure, given a chance, I will be able to explain everything to you sufficiently. On top of that, i am free in the time frame specified by you.
Good luck in your exams, mate.!