University of Toronto
Scarborough College
Fall 1997

CSC A06F: INTRODUCTION TO COMPUTER PROGRAMMING


Announcements


Dec 18: Demo your project?

Every year the computer science department invites high school students to an `open house' to show them what we do here. We would like to show these students what they can do after their first programming course. So, if you think you wrote a nice project (the colour wheel), you should consider giving us permission to demonstrate it at the open house next summer. Just send me e-mail.


Dec. 18: Pick up your work

You can pick up your work at Lucile's office in S-631B. She'll keep it around for a couple of weeks into the new year. Your marks for the term are posted on this web page, and will be removed in February.

I hope you enjoyed the course. Good luck with your future.


Dec 11: Lose your mittens?

A pair of mittens was left behind in the gym after the exam.


Dec 11: Assignment 3 and projects PICKUP

Assignment 3 for Will's section can be picked up from my office on Thursday Dec. 11, or Monday Dec. 15, or Wednesday Dec. 17. All other assignments and projects should be ready for pickup on Wednesday, Dec. 17.


Dec 11: Lose your mittens?

A pair of mittens was left behind in the gym after the exam.


Dec. 8: Assignment 3

Unfortunately, assignment 3 won't be ready until Wednesday afternoon (Dec. 10) for pickup at my office.


Dec 3: END OF TERM ANNOUNCEMENTS

I'll have office hours on Monday Dec. 8, 10am-4pm, except maybe at lunch time. I'll also be on campus on Wed. Dec. 10, Thu. Dec. 11, and Monday Dec. 15.

Assignment 3 will be ready for pickup on Monday afternoon. I'll leave a note on my office door to say where you can pick them up on Tuesday. Projects probably won't be marked until after the exam. Watch this space for information on where and when to pick them up.


Dec. 1: What's on the exam?

The exam is open book. That means you can bring in your Lewis & Loftus textbook, but only the textbook. Look here, on the main web page, for more details.


Nov 25: Project: X11 display error on fissure

On fissure, if you get the following error when you run appletviewer CCapplet.html,
java.lang.InternalError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.
then type in the following at the fissure prompt, and try again.
setenv DISPLAY xxxxxxx.scar.utoronto.ca:0.0
where xxxxxxx is the name of the computer you are sitting at; for example, clusterpc18. It should be written somewhere on the computer.
Why? When you run the appletviewer it is trying to show you a window, but it doesn't know which DISPLAY (i.e., monitor) to put it on; you have to tell it with the "setenv DISPLAY" command. You only have to set the DISPLAY once per session.


Nov 12: JDK and applets

Some people are wondering if you have to use Visual Age for Java to run applets. Well, you don't. Every applet has a .java file and a .html file. Look at the Confucius example on page 65-69 of the text book.
  • Netscape: To run an applet in Netscape just open the its html file. This will work only for applets that use Java 1.0, because Netscape doesn't yet know about Java 1.1. The project uses Java 1.1 features (the event stuff), so you can't run it in Netscape.
  • Visual Age for Java:You don't actually need the .html file. Just 'run' the applet code. It will start up the appletviewer and show you the applet.
  • JDK: After you have compiled your code using javac, you can run it using the appletviewer:
    > javac Confucius.java
    > appletviewer Confucius.html



Oct 30: Getting your midterm back

If all goes as planned, the midterm should be ready for pickup from my office on Monday Nov. 3, at 10am.


Oct 30: Look up your marks

You can now look up your A1 marks online. If you find errors, then please tell your instructor.


Oct 27: Midterm solutions

The midterm solutions are now available.


Oct 27: ASSIGNMENT 2 hints

For those still struggling with what is required, here is a scenario of how the processing happens.
  1. CourseStats.main reads in marks for one section and adds each mark to the first section (by calling add(float) in TutorStats).
  2. To add a mark, TutorStats makes sure that it's valid, then adds it to the histogram. (by calling add(float) in HistogramPlus)
  3. main does the same for second section
  4. main adds the the first section to the course info (by calling add(TutorStats) of the CourseStats class).
  5. To do this, it has to add the section's HistogramPlus object to its own HistogramPlus object (by calling the add(HistogramPlus) method of HistogramPlus). But it first has to find out the section's HistogramPlus object (How does it do that?)
  6. Then, main adds in the section section.
  7. Finally, main prints the two sections, and the combined course info. A call to println automatically calls the toString method of the object that you are printing.
Question: What if you can't get everything done? That's ok. If you have part of the assignment working, then you can get part marks. It has to compile and run, and you have to test it. You also have to use proper style for the part you have working. If you hand in a broken program that doesn't compile at all with no testing, you'll get a very low mark, even if some of the methods work. We need evidence that they work, and that means having code that runs.


Oct 22: A1 almost all marked

Assignment 1 is almost finished being marked. You'll be able to pick them up in your tutorials. For Will's Friday sections, he'll bring your assignments to his office hours on Thursday.

Remarks: write a short note to explain the problem if you have a problem with how your assignment was marked, and hand your assignment back to your TA. TAs will only accept remarks if you write a note. The deadline for remark requests on A1 is Fri. Nov. 7.


Oct 22: Extension on A2

I've extended the deadline for A2 to Wednesday Oct. 29, 2pm. For a 30% late penalty you can submit on Friday, Oct. 31 at 2pm.


Oct 15: Midterm

The midterm is on Friday, October 24, from 5pm - 6:15pm. There are 3 rooms; please go to the room depending on your last name:
Room Last Name
H-216 A-LAM
H-214 LAN-N
S-319 O-Z



Oct 8: Examples of Java code

By popular demand, I've set up a directory of Java examples. There aren't very many there yet, but I will be adding to it. If you have any examples of your own that you'd like me to add, then send them to me.


Oct 2: EXTENSION to Assignment 1

Pass it around. The due date for assignment 1 has been extended to:
Friday, October 10, 2pm. SHARP. In the drop boxes in S-506F.

NO LATES WILL BE ACCEPTED.
We decided to grant the extension because the bookstores ran out of textbooks, and because we have only recently covered some of the relevant material for the assignment. This will not affect the due dates of the other assignments. A2 will be handed out this Monday.


Sep 29: Errors in ASSIGNMENT guidelines

There are a couple of errors in the guidelines.
  • The drop boxes are in S-506F, (not S-506B).
  • There are a few typos in the last section saving your output to a file. It should read: (or consult the whole thing on-line.)

    If you use Visual Age for Java:

    • Export the .java files to a directory (for printing).

    • Export the .class files to a directory.

    • Start up a DOS window, and continue with the steps for JDK. Of course, you'll have to have installed JDK, or do this on a machine with JDK installed on it. (You might actually be able to do the steps below in Visual Age, but I'm not sure how. If you can figure it out, you won't have to drop down to the DOS prompt.)

    If you use JDK on DOS or Unix (fissure):

    • Run the program on each test file. If your program is called MyProgram.class, and you have 2 test files, then give these commands:
              java MyProgram < test1.dat > test1.out
              java MyProgram < test2.dat > test2.out
      The ``<'' and ``>'' symbols indicate redirection of the input and output to use files instead of the keyboard and the screen. You won't have to type any input, and you won't see any output on the screen.

    • Print the program files, i.e., the .java files. (Could do this from Windows.)

    • Print each test data file: test1.dat, test2.dat, ...

    • Print each test output file: test2.out, test2.out, ...



Sep 29: Guidelines for your assignment

READ the guidelines for doing and submitting your work. This will also be handed out in paper form in lecture.


Sep 29: Drop boxes for Assignment 1

The drop boxes are located in S-506F. That's the Math Aid room. There is one box for each tutorial. They will be labelled T0001, T0002, ..., so you should find out which section tutorial section you are in before coming to drop off your assignment. The drop boxes will be cleared at precisely 2pm. After that, your assignment is late.


Sept 24: TA office hours

Starting next week, all TA office hours will in in R-4209, and R-4111 when that room is taken by a class.


Sept 24: Handouts are in the library

As well as on this web page, you can find all the handouts in the library.


Sept 11: Quiz next week

If you are just joining the course from A58 or otherwise, then this is a reminder that there is a quiz next week during tutorial about the material covered this week. Read chapters 1 and 2 of the textbook, and the lecture notes.


Sept 10: Lecture notes online.

You can now look at the lecture notes online.


Sept 8: Welcome

Welcome to CSC A06F!


Last modified: Fri Jan 30 15:10:36 EST