In the first example, you are saying that you will finish the assignment.
To have something done, implies that you might ask somebody else to complete the task. This is not going to be the case with assignment.
To have something done does not rule out the possibility that you will do it.
The two examples have subtly different emphasis.
1 - Emphasises who will complete the task
2 - Emphasises that the assignment will be finished