First of all you'll have to understand the simulated annealing algorithm.
The algorithm is explained (oh wonder) e.g. on wikipedia:
http://en.wikipedia.org/wiki/Simulated_annealing[
^]. Since this is a lecture task i'd guess the algorithm was explained in your lecture as well?
When you've understood it you'll have to implement the algorithm in the programming language of your choice and maybe look for mathematical libraries that provide (some) logic for this.
But dont expect the users here to post some code that you could just copy / paste to use for your assignment.
Put some own effort into this and show what you've tried so far if you can't seem to suceed.