In how many different ways can you place the black rook and the black king if they must be next to each other (in any direction including diagonally). The two first diagrams show acceptable positions whereas the third one is not acceptable because there is at least one empty square between the rook and the king.
Here is what I have so far:
Case 1
Black king in the corners-> 4 possible choices
Case 2
Black king on the sides not a corner->24 possible choices
Case 3
Black king on the interior->30 possible choices
I want to know if I am on the right track?

You are headed in the right direction.
Case 1: King in a corner. There are 4 corner squaress for the king, and for each square, the rook has 3 positions, giving $4 \cdot 3 = 12$.
Case 2: King on an edge. There are 24 edge squares for the king, and for each square, the rook has 5 positions, giving $24 \cdot 5 = 120$.
Case 3: King in the center. There are 36 center squares for the king, and for each square, the rook has 8 positions, giving $36 \cdot 8 = 288$.
These cases are exclusive (they do not overlap) and they are exhaustive (all possibilities are covered). Hence, adding them all up we get $12 + 120 + 288 = 420$.
Note that this method can be easily generalized to placing a rook and king on an $n \times n$ chessboard, or even on a $k$-dimensional chessboard. With some effort, you can place more pieces, etc.