Step 1: Understanding the Concept
Find the interval of S, then locate the maximum of \(f\) on it using \(f'(x)\).
Step 2: Find the Interval
\(x^2-11x+30\leq0\Rightarrow(x-5)(x-6)\leq0\Rightarrow5\leq x\leq6\).
Step 3: Derivative
\(f'(x)=9x^2-36x+27=9(x-1)(x-3)\), which is positive for \(x>3\). So \(f\) increases on \([5,6]\).
Step 4: Maximum Value
The maximum is at \(x=6\): \(f(6)=648-648+162-40=122\).
Final Answer:
The maximum value is 122.
\[ \boxed{\text{(D) }122} \]