Remember: the easier it is for the TAs to mark, the better chances you have getting a good mark! Try not to make their job difficult or your assignments more difficult than they are intended. The following are some hints to keep in mind ... Good Luck!
In many cases you will be asked to provide an "algorithm" for some task. What does this include? In most cases this will mean you should give us some clear pseudocode AS WELL AS a description of what it does. You shouldn't include actual code.
The description should clearly explain how to follow the pseudocode, helping us understand it as we mark it. If you just include pseudocode, the markers will not be in good moods as they try to figure it out! Also, the description should match what the pseudocode does, or it will be wrong. (i.e., don't give us pseudocode that does one thing and a description of another!)
Here is a good example:
1. while (not end of file) { 2. read in a character; 3. if the character is not a letter of the alphabet, then print it out; 4. otherwise (the character is a letter of the alphabet) let V be the value of the letter (A=0, B=1, ...,Z=25); 5. print out the letter whose value is: (V+13) mod 26; 6. }
Here is a bad example:
main(a){while (a=getchar()) putchar(a-1/((a|32)/13*2-11)*13);}
Make reasonable assumptions only. As an example, if you are asked to write an algorithm for sorting numbers:
Here is the guideline for CMPUT 204:
(for details, see the Professor or TAs)
Collaborative Work: Students may discuss problems and
share ideas, but must not share any written work.
All assignments must be written completely individually.