Post date: Sep 27, 2011 1:20:6 PM
Announcements
Reminder: Project 4, that was begun in lab yesterday, is due next Monday, 3-Oct @ 9:00 pm
Homework
Work on Project 4: Calendar Functions
Read pages 233..242 and take Chapter 8A Quiz, determinate loops only (for and while)
If you want, you may begin Thursday's assignment
Lecture Outline
Any questions on Project 4?
You could write your own test function (or 3 test functions in dayNumber) working before writing def main():
# Output:
def testTDate(): # expected actual
print(25, tDate('MO')) # 25 25
print(24, tDate('TU')) # 24 24
print(tDate('WE')) # ... you may add your own expected values
print(tDate('WE'))
print(tDate('TH'))
print(tDate('FR'))
print(tDate('SA'))
print(tDate('SU'))
Optional: Run Rick's tests.
See this Calendar Tests Page to help explain what could be many lines of output if and when you run Rick's tests
Why does Rick provide these tests? It is a lot of help after all, and takes extra time
Mostly to convince you that it is good to know if our code works
Helps us understand the problem better
In my other classes, we have a server to automated feedback and grading
The determinate loop pattern and the Python for loop ppt
Quiz #3: Functions and Decisions