Homework

Submitting Homework:

  • Create a folder for the homework and call it hw1, hw2, hw3, etc. Make sure to use all lowercase when naming your folder
  • The folder should only contain your .cpp and .h files and the ArgumentManager.h file. There should be no folders inside your homework folder
  • Make sure that you have the correct permissions set for your hw folder on the server. To ensure this you can enter the following command: chmod -R 755 folder_name

Checking Homework Grade:

  • Once logged into the server, go to the hw-archive folder by using the cd command. (i.e. cd hw1-archive)
  • You can view your grade by doing the command cat GRADE
  • You can view any other files in the hw-archive folder by using the cat command

Homework Regrading:

  • There will be two regrades after each homework deadline. The first regrade is two days (48 hours) after the deadline and the second regrade is four days (96 hours) after the deadline.
  • The first regrade is the original score + (the score after 1st regrade - original score) * 80%. For example, if you original grade was a 40 and then you got an 80 after the first regrade, then your grade after the first regrade would be 40 + (80-40) * 80% = 72.
  • The second regrade is the score after the first regrade + (score after the second regrade - score after the first regrade) * 60%. For example, if your grade after the first regrade was a 72 (as in the example above) and then you got a 100 on the second regrade, your final homework grade would be 72 + (100-72) * 60% = 88.
  • Your final homework grade can be calculated by doing: (original_grade + (1st_regrade_grade - original_grade) * 80%) + (2nd_regrade_grade - grade_after_1st_regrade) * 60%)
  • There will also be a final homework regrade at the end of the semester
  • If your homework grades before the final regrade are: HW1 - 100, HW2 - 70, HW3 - 40, HW4 - 80, HW5 - 70 and if your homework grades after the regrade are: HW - 100, HW2 - 100, HW3 - 90, HW4 - 70, HW5 - 100. Then the HW3 grade will be the one that gets replaced since HW3 had the best regrade.

Programming Rules:

  • Do not share or copy code. Homework is an individual assignment
  • Any cheating on homeworks will result in a zero
  • If you use code from an outside source (website, textbook, etc.) disclose it in your code
  • Do not use int main() or void main(). Instead, use int main(int argc, char *argv[])
  • Do not do "hard coding" (i.e. file.open(ans1.txt);)
  • Do not halt or wait user's interaction (i.e system("pause");)
  • Test your homework before submitting for grading
  • Test your homework with different testcases