This cannot be done the night before you take an exam. Attendance Grades are positively correlated with attendance. Getting behind is the single most often cited reason for failure in Computer Science classes. Programming assignments often take considerable time. There is simply not time at the end of a semester to complete all or even most or, sometimes, even a few of the programs.
Some students start on time but put off working on a program when they run into difficulty.
Don't make that mistake. If you are stuck on some aspect of an assignment, seek help from a TA or from your instructor immediately. Help There will be help sections scheduled weekly. These sessions will focus on the homework and programming assignments. These sessions are a primary but certainly not exclusive source of help.