A professor is assigning grades to a class of 10 students. As a very kind professor, he only gives out A's, B's, and C's. How many ways can the professor assign grades to all his students?

THANKS FOR ALL HELP

the assignment is equivalent to a 10 digit base 3 number.

thus there are 3^{10} = 59049 different grade assignments