EE 209 Programming Structures for Electrical Engineering

Programming Assignments


We will do five programming assignments. The first four programming assignments take up 10% of your total grade, and the fifth assignment takes up 15% of your total grade. Some assignments provide extra credit beyond your total grade.

Tips on File Downloading and Making it Executable on Linux Terminal


To download any files linked in assignment pages from your linux terminal, you can use wget and specify the URL of the file. For example,

wget http://www.ndsl.kaist.edu/~kyoungsoo/ee209/assignment/decomment/files/sampledecomment
this command will download the sample binary (sampledecomment) to your current directory.

If you downloaded a binary file and want to execute it, you need to set its execution bit(s). If you want sampledecomment to be executable in current directory, type:

chmod u+x sampledecomment
then sampledecomment will become executable. The u option in chmod indicates that the operation applies to access of the user who owns this file and x means that the command updates the execution bit of the file. For more information about chmod or wget, try man. We will teach these commands in depth in "EE485: Introduction to Environments and Tools for Modern Software Development", so take the course!

Assignment Submission (Important)


Use KAIST KLMS to submit your assignments. Your submission should be one gzipped tar file whose name is

YourStudentID_assign#.tar.gz

For example, if your student ID is 20201234, and it is for assignment #3, please name the file as

20201234_assign3.tar.gz

To create the .tar.gz, first move all your files to the directory (20091234_assign3).

mkdir 20201234_assign3
mv all_your_files 20201234_assign3

Then, create a .tar.gz file by the 'tar' command like

tar zcf 20201234_assign3.tar.gz 20201234_assign3

Then, you'll see 20201234_assign3.tar.gz. If you want to decompress and release the files in it (in a different directory),

tar zxf 20201234_assign3.tar.gz

Late Submission Penalty


Students can use late submission (late pass) which can be late up to three days without penalty for the first four programming assignments. That is, you can apply your late submission days (within 3 days in total) spread over the first four programming assignments. The smallest granulaity is one day: if you are 1 hour late, that's still counted as one day late. If you're going to spend your free late days, please say so in your readme file. Beyond the free late days, we will enforce this penalty rule for each assignment. One will get

We will grant extensions only in case of illness(with doctor's note) or extraordinary cicrumstances. In case you are submitting your work late due to illness or extraordinary circumstances, please consult with the instructor as soon as possible. Please plan ahead (travel, religious holidays, etc.) to meet the deadlines. Note that heavy workload is not counted as extraordinary cicrumstances. Once again, there is no late submssion allowed for the final assignment. Any late submission for the final assignment will result in zero credit.

Collaboration Policy


Please refer to the course policy page.

Coding Style


Good coding style will be one criterion for grading each assignment. Please make sure your code has proper indentation and descriptive comments. At the start of each file, please add your name, lab account ID and the description of the file. Make sure not to leak any memory and check/handle every return value of function calls.

Assignment Grading


Your submission will be graded on one of the Lab machines for the course. You are free to use other machines for coding and debugging, but please make sure to compile and test your final version on the Lab machines. In a rare case, library mismatch or O/S stack difference (Mac/Windows vs. Linux) can bypass some of your bugs, but they can actually show up on the Lab machines while grading. In order to avoid this last-minute surprise, please test on Lab machines before submitting your work.

Manual Grading Policy


Trivial mistake in your submission may cause huge amount of deduction in your assignment score. For such exceptional circumstances, you can request and get manual grading at the TA's discretion. For each modification and manual grading, you will get 15% amount of deduction from your total score.


Last Update: