DISCUSSION THREAD
Hints:
Write down the stiffness matrix [K] using the elemental contributions, as well as the forcing vector {F} from the work expression. Enforce the displacement boundary conditions on the stiffness matrix and forcing vector. Solve for the nodal displacements.
Any questions? Ask (and answer) questions here.