Are you basically asking how to use Activity completion and Course completion ? Those links will take you to the documentation pages.
With activity completion enabled you can set each assignment to be marked as complete once the teacher has given a grade. Then with course completion enabled the course as a whole will be marked completed once all the selected assignments have been marked complete.