\begin{pmatrix}7&k\\ \:0&7\end{pmatrix}
I could not figure out how to derive the eigenvalues and eigenvectors of the matrix above because of the letter $k$. How am I supposed to deal with a value in terms of $k$? And how would I be able to find out if the matrix is diagonalizable or not through that?
Let $\mathcal A$ be the matrix \begin{pmatrix}7&k\\ \:0&7\end{pmatrix}
The characteristic polynomial of $\mathcal A$ is $p(\lambda)=(7-\lambda)^2$.
Observe that $ (\mathcal A - 7\mathcal Id)(x,y) = (0,0) \iff ky=0$. Clearly if $k=0$ $\mathcal A$ is diagonalizable. If $k \ne 0$ then $ky = 0 \iff y=0$. What can you conclude?