AssignmentsSpecifications, supporting files and solutions to all assignments will be posted here as they become available.
General Assignment Material
There are two files to read over before submitting an assignment. The first are instructions for assignment submission. These regulations you must follow or else risk losing many points on the assignment. There is also a 2nd file, which is programming guidelines. The purpose of this file is to take some of the useful guidelines and tips that were originally in the instructions file and separate them. These are things that you should follow as closesly as you can. However, failure to do so will only result in a few points deducted (if any) as the guidelines are not always easy to follow and are often subjective. In otherwords, the file Instructions (instructions.pdf) has to do with COMP-202 regulations that you must follow in order to make grading as easy as possible. These will be things such as submitting your assignment on WebCT, submitting it ontime, etc. The ProgrammingStandards.pdf file contains general guidelines that are good to keep in mind while programming and are not COMP-202 specific.
- Revised Instructions
- General Programming Guidelines
- Template for single-class Java programs
- Assignment Submission Instructions (includes instructions on how to check your submission and edit it after submission)
- Policy on Queries and Complaints About Assignment Grading
Assignment 1Due SUNDAY, January 29nd, 23:30. (It was awful to make the assignment due on Friday!)
- Specification (read this first) (Updated: January 12th with important clarification on negative velocities)
- Assignment1.zip (contains zipped code for you to use. You should download and unzip this)
- I'm posting the assignment a little early so that you can get started looking over it if you like. For the time being, we have not covered what is necessary to get started on the assignment. The best thing you can work on for now is making sure that you can get HelloWorld program working. There are some links on the lecture notes under my section.
- Stay tuned to the course webpage here in case anyone points out any errors or clarifications that should be made. Also, it occurred to me after writing this assignment that asteroids usually travel a lot faster than a couple meters per second. That's okay though :) --Dan
- Update: Someone pointed out a potential issue when the asteroid in question 1 is actually moving AWAY from the Earth. I have updated the specification accordingly. Note that you should actually divide by the NEGATIVE of the velocity computed at the prior step to get the final result.
- Assignment1Solutions.zip Solutions
Assignment 2Due Updated: Wednesday, February 22nd, 23:30.
- Specification (read this first)
- AssignmentTwoTests.java (contains test code to help you verify you are on the right track)--Update to fix a couple of tests (February 6th, 2012), please redownload the file
- Update on due date: The assignment is officially now due on Wednesday February 22nd which is during reading week. The reason for the postponement was to make sure that students who had lots of midterms before reading week had some ability to get the work done. That said, as I mentioned in class, you should aim to finish before reading week as I do not want to be responsible for you spending your whole break working on a computer assignment. The due date can't be later than Wednesday because if it's later then it will be extremely unlikely that you can get your assignments back before the midterm. (As well, you won't get the solutions until a few days after it's due.)
- Hint for question three (compareUsers): A few people have asked me about failing test cases. One thing to make sure is that you don't modify the array user1 or user2 inside of your method compareUsers() When you normalize the array, you should do so by copying the value into a new array using a loop. Otherwise, because user1 and user2 are each reference types, they'll be an impact outside of the method and it will cause later tests that use the same arrays to fail.
- AssignmentTwoSolutions.zip Solutions
Assignment 3Due Updated: Monday, March 19th, 23:30.
- Specification (read this first) Update (March 4th: 13:00 : Fix typo related to nextId in User question)
- AssignmentThreeTests.java (contains test code to help you verify you are on the right track)