I have finished regrading all your work (written homework, lab report, and exams). Most of your scores were deducted due to plagiarism. If each work was copied from either your friends or the Internet sources without any modification, or you have demonstrated lack of understanding (in many cases, your codes did not compile when I tested due to syntax errors), you would received a lower score.
I also used a different scheme for midterm to give a fairer advantage for the people who did not choose to retake the exam.
These grades are final. You may challenge your grades but you must be prepared to demonstrate and defense your original work.