February 26
Office hours on Wednesday may have to be canceled as I am sick with a stomach flu. I will do my best to answer any questions you have via email. My apologies for the poor timing.February 25
Office hours on Feb. 27th pushed back half an hour to 12:10-1pm in HW418.
Do you think you might be interested in taking a second computer programming course? CSCA48 is the next one to take. If you are interested, you will need to learn a few concepts not covered by CSCA20. To do so, I will hold a some extra lectures to make sure you have the background for CSCA48. If you are interested, please email me your timetable for Mondays through Thursdays and I will try to find a time slot that satisfies everyone's schedule. We will hold the extra classes during weeks 10-12.
February 19
No office hours during reading week, however EXTRA OFFICE HOURS on Monday February 25th at 11:10am-noon in HW418.
February 16
Some people STILL submited their A2 to the incorrect directory. In assignment 3 and the project, such assignments will recieve 0. Please submit your assignment properly. There was no excuse for assignment 2 as the directions were given below.
Labs 6 and 7 have been posted. I encourage you to do lab 7 as practice.
February 7
IMPORTANT: How to submit your assignment 2. A number of students submitted A1 incorrectly. We still graded A1, but it took a lot of extra work. We cannot be so lenient for A2. This is the exact command you must use:
submit -N A2 csca20s warmup.py test_warmup.py molecules.py test_molecules.py
If you need to resubmit your assigment, then you should use:
submit -N A2 -f csca20s warmup.py test_warmup.py molecules.py test_molecules.py
Some good questions asked by students about A2:
Q: For the quantities function, will all the number of molecules be single digits? or will you be testing for double digits as well? my code works fine for a molecule like H20 but if you entered something like H22011, it would give you the list like ['2', '2', '1', '1'] instead of ['22', '11']. Will you be testing using double digits?
A: Yes, we will be testing with double digits, so for the example you gave, you should produce the list ['22', '11'].
Q: For the atomic_mass function, are we to assume that the nested list is all inclusive? for example if the atom is C then the nest list will have a C entry
also, for testing purposes, should we test that case? that the atom asked is not in the nested list, or do we assume that it includes all atoms on the periodic table
A: You may assume that the nested list contains all atoms needed. So for your example, if the atom is C, then C will definitely be in the nested list. You do not need to test for the case where the atom is not in the list.
Q: For the syntax of entries, do we assume an order that atoms are listed? or can they be in any order? for example is H2O1 equivalent to O1H2?
A: You may assume that the atoms are always listed in the same order. When comparing a molecule, H2O1, to another molecule, it won't match unless it has the same form: H2O1.
Q: For test cases where the function returns a float, for example the molecular_masses, in our assert how do we enter our answer? if the float used by Python rounds off to a 'strange' number how do we know what this is? for example the function evaluates to 32.00000000007 where the answer should be 32.0 using calculations based on the nested list given in the instructions
A: In the H20 molecular mass example, the handout shows the calculation 1.008*2 + 16.00 is equal to 18.016, which represented as 18.015999999999998 in Python. In the Python shell, type: 18.016 == 18.015999999999998. You'll find that they are equivalent, so in your test cases you can compare the result of the function with the value you expect (in this case, 18.016).
Q: For the common_atoms function, should the nested list returned have the number of times the atoms are in common as type str or int?
A: It should be an int.
February 4
Assignment 2: The handout originally listed the molecular mass of H2O as 18.16. That was a typo, which has been corrected, so it now says: 18.016.January 25, 2008
Assignment 1 due date clarification. On the assignments page there was a typo stating that the due date is Jan 30th. Because of this, assignments will be accepted until 10am on WEDNESDAY JAN. 30th. Sorry for the confusion.January 22, 2008
Another ROOM CHANGE. The lab on Wednesday at 14:10-15:00 has been moved to room BV498.January 16, 2008
Another ROOM CHANGE. The lab on Wednesday at 14:10-15:00 has been moved to room BV471.The readings for this week are listed on the lectures page. You should read most of Chapter 3 (except 3.2.3, 3.2.4, 3.3.1) and Chapter 4 (except 4.4, 4.5).
January 12, 2008
The Course Information sheet had a few St. George facts instead of UTSC. Namely there are 12 labs, each worth half a percent and they are 1 hour long.
January 10, 2008
ROOM CHANGE. We have been moved to BV264 for Monday's lecture. I am doing my utmost to get this decision reversed, but have had little success so far.
Attendance at the first lab was rather low. You are graded on attendance and further the labs are a great way to practice the course material. I strongly encourage you to take advantage of the labs for the rest of the term.