Write a formal letter to the Professor teaching this course, requesting a recommendation letter for employment or g just thata request, not a demand. The way in which you articulate yourself in writing can make the difference bet to spend the time writing you a letter of recommendation or decline your request.