Homework 4
Problem set: hw4.pdf (a new version with a minor correction in Problem 2 part 2. uploaded at 10.40am on 04/22/12)
Downloads: testbank.pl
Due date: 04/27/2012, Friday, 11.59pm EST
Submission: Your submission should include three perl modules: BasicMath.pm, Bank.pm & BankAccount.pm. More instructions and guidelines for homework submissions in the bottom of this page.
Homework 3
Problem set: hw3.pdf
Downloads: markets.txt
Due date: 04/18/2012 11.59pm EST
Submission: Your submission should include two perl programs: file_list.pl and eat_healthy.pl. More instructions and guidelines for homework submissions in the bottom of this page.
Homework 2
Problem set: hw2.pdf
Downloads: twitter_feed.txt
Due date: 04/11/2012 11.59pm EST
Submission: Your submission should include three perl programs - mta_extract.pl, phone_no_normalize.pl, twitter_process.pl. More instructions and guidelines for homework submissions in the bottom of this page.
Homework 1
Problem set: hw1_template.pl.txt
Downloads: article.txt
Due date: 04/03/2012 04/04/2012 11.59pm EST
Submission: Include the solved hw1_template.pl and wordcounts.txt (of Part 4). Solved hw1_template.pl means you will insert your code between the "YOUR CODE STARTS HERE" and "YOUR CODE ENDS HERE" lines, for each problem, to produce the required output.
Homework Submission Instructions
Please note submission instruction changed from what was mentioned in the class. Submission should be made via courseworks website (instead of via email). If you have trouble accessing Courseworks website, please let the instructor know.
Place the files (programs, write-ups/outputs if asked) for all problems in a directory named [your_uni]_hw[X] , where X is the number of the problem set. For instance if your uni is xy1234 and you are submitting the solutions for hw1, the directory should be called xy1234_hw1. Either zip or tar_and_gzip the directory (tar -c xy1234_hw1 | gzip > xy1234_hw1.tgz ) and upload it to the directory for home work X on the Courseworks page for this class.
Executing your programs
The Cunix machine (cunix.cc.columbia.edu) has Perl v 5.8.7 installed. If you find it hard to install Perl in your machine, you can use Cunix machine to run your programs. To access Cunix machine type 'ssh
This e-mail address is being protected from spambots. You need JavaScript enabled to view it.
' at your terminal/shell/telnet and enter your UNI password.
General Homework Guidelines
- Late policy: Absolutely no late submissions will be allowed (unless in unusual circumstances with prior instructor approval).
- Your code should run without errors on Perl v 5.10.0
- Document your code! Undocumented code will result in lower scores. Code should also be readable and easily understandable (use meaningful variable names, proper indentation etc.)
- Make sure your program implements any specific functionality asked for (input/output format etc.).
- Efficiency of your implementation matters unless specified otherwise.
- You should be able to solve all problems without using any modules other than those mentioned.
Academic Honesty Policy
All problems must be solved individually. While there is a lot of useful material online that you can use as a reference, you are not allowed to copy literal code and solutions. You may discuss problems with other students, but you have to do the write-up and implementation yourself. Violations of this policy will result in a grade of zero and further steps may be taken in accordance with the CS department's academic honesty policy.