COMP-202 - Introduction to Computing 1 (Fall, 2004)

Welcome
News
Syllabus
Calendar
Assignments
Office hours
Hints
Links
Resources

News

  • December 6: Solutions to assignment 6 have been posted in the Assignments section.
  • December 3: A final exam with solutions has been posted in the Resources section.
  • December 2: The final exam is Friday, December 10 at 14:00 in the GYM.
  • December 1: Reminder: the last day of lectures for courses following the Monday-Wednesday-Friday schedule (sections 1 and 3) is Friday, December 3rd.
  • November 30: There will be a pre-final-exam tutorial this Friday, December 3rd. from 3:00pm to 5:00pm in room W-215 of the Arts Building.
  • November 22: Solutions to assignment 5 have been posted int the Assignments section.
  • November 19: Assignment 6 has been posted in the Assignments section. It is due on December 3rd at 23:55.
  • November 15: Some TAs will have a temporary change in their office hours schedule:

    • Mian Ashar Aziz will not be available this Wednesday, November 17th. He will be available Tuesday, November 16th, from 10:00am to 11:30am instead.
    • Carlton Davis will not be available from Thursday November 18 to Thursday November 25, but will be available this week on Tuesday, November 16th from 2:45pm to 4:15pm, and on Wednesday, November 17th, from 4:00pm to 5:00pm. Wednesday.
  • November 10: Assignment 5 clarification: you may not use the classes ArrayList or Vector or LinkedList. You must use regular arrays to represent the array of cities.
  • November 10: Solutions to assignments 3 and 4 have been posted in the Assignments section.
  • November 8: Assignment 5 testing: Testing your program in assignment 5 can be very time-consuming, in particular if you have to re-enter a list of cities every time. It would be very convenient to be able to save a city list into a file and load it instead of retyping the list. To facilitate this we provide a class called CityFiler (which can be obtained here.) This class provides two static methods:

    • public static CityList load(String filename)
      This method loads the file with the given filename into a new city list l, and returns this city list. The format of the file is that produced by the save method below.
    • public static void save(CityList l, String filename)
      This method saves the city list l into a file with the given filename, overwriting the file's contents. The format of the file is the same as given by the toString method of class CityList.
    To use it you can do something like:
                      CityList theList;
                      theList = CityFiler.load(``citydata.txt'');
                      //...do stuff
                      CityFiler.save(theList, ``citydata.txt'');
          
              
    These methods expect that you have implemented the add and toString methods of class CityList, as well as the constructors for CityList and City, where the arguments to the City constructor are in order name, population, altitude and sector.
    You don't have to use this class in your assignment, but it might help making your tests less time-consuming.
  • November 4: Assignment 5 has been posted in the Assignments section. It is due on November 18th at 23:55.
  • October 26: Assignment 4 clarification:

    • The punching power is between 2 and 10 (not 1 and 10, otherwise a boxer with punching power of 1 would not be able to jab.)
    • You can either use integers of floating point values to represent the stamina and the power of a boxer, but you cannot lose any precision. This means that if a boxer has a maximum punching power of 3, the damage inflicted on the opponent when hit (without slipping or blocking the punch) should be equivalent to 1.5 points (it should take the equivalent of 1.5 points off the stamina).
  • October 22: Midterm solutions have been posted in the Resources section.
  • October 20: Assignment 4 has been posted in the Assignments section. It is due on November 3rd at 23:55.
  • October 13: There will be an optional pre-midterm tutorial this friday (Oct 15) from 2:30 pm to 4:00 pm at RPHYS 118.
  • October 13: The midterm will take place October 20th at 7:00 pm at the following locations (this is subject to change.)
    Section Locations
    1 ENGMD 276, 279 and 280
    2 ENGMC 204
    3 ENGMC 204
    Note: ENGMD: McDonald Engineering; ENGMC: McConnell Engineering.
    The conflict exam for students taking PHAR 300 will be at ENGMC 103 at 5:45 pm.
    The conflict exam for students taking MATH 223 will be at ENGMC 103 at 8:15 pm.
  • October 8: A sample midterm has been posted in the Resources section.
  • October 5: Assignment 3 has been posted in the Assignments section. It is due on October 18th at 23:55.
  • September 24: Students who have a conflict with the midterm should contact their instructor by e-mail, and provide the following information: name, id, and course it conflicts with (note that only PHAR 300, BIOL 114 and MATH 223 have higher priority than COMP 202; if you have a conflict with any other course, the other course must make the required arrangements.) The midterm is scheduled to take place on Wednesday, October 20th at 7:00pm.
  • September 23: There were some typos in the example in assignment 2. Please reload the assignment webpage to obtain the corrected example.
  • September 23: Due to a glitch with WebCT, students whose last name begins with 'A' need to resubmit their assignment 1. If your last name begins with 'A', please resubmit your assignment to the "Problem box". We apologise for the inconvenience.
  • September 21: Assignment 2 has been posted in the Assignments section. It is due on October 4th at 23:55.
  • September 17: The midterm is scheduled to take place on Wednesday, October 20th at 7:00pm. If you have a conflict please inform your instructor now.
  • September 16: Assignment 1 mentions that you should submit a ``JAR file''. Please ignore this comment. Do not submit a JAR file. Submit only the .java and .class files.
  • September 10: A tutorial on JCreator has been posted in the Resources section.
  • September 9: A beginner's Unix tutorial has been scheduled for friday at 5:00pm, at the Trottier Building, 3rd floor, room 3020 (Lab 2). More Unix tutorials will take place next week. Please consult SOCS Unix seminars for more information.
  • September 9: Office hours for the TAs have been posted in the Office Hours section. Please note that there will be one TA assigned each month to answer questions by e-mail.
  • September 8: Assignment 1 has been posted in the Assignments section. It is due on Monday, September 20th, at 23:55.
  • September 3: A tentative schedule for the Unix tutorials can be found here: SOCS Unix seminars. Please note that if you are going to work at the Trottier labs you'll need a basic understanding of how to use Unix/Linux, so these tutorials might be use ful.
  • September 1: Lectures begin.