150 likes | 313 Views
Winter 2014. Computer Science 1MD3 Introduction to Programming. Michael Liut ( liutm@mcmaster.ca ) Brandon Da Silva ( dasilvbc@mcmaster.ca ) Ming Q uan Fu ( fumq@mcmaster.ca ). How to get our help.
E N D
Winter 2014 Computer Science 1MD3Introduction to Programming Michael Liut (liutm@mcmaster.ca) Brandon Da Silva (dasilvbc@mcmaster.ca) Ming Quan Fu (fumq@mcmaster.ca) www.michaelliut.ca/cs1md3
How to get our help • Email any of us (TAs) and describe your questions in your email and we will reply to you as soon as possible when we read your email. But you need describe your questions clearly. • Michael Liut (liutm@mcmaster.ca) • Brandon Da Silva (dasilvbc@mcmaster.ca) • Ming Quan Fu (fumq@mcmaster.ca) Office: ITB 206 • Meet with one of us. Send email first, and we may know when is the available time for us, we can make sure the meeting time.
Today’s Outline • Reminders/Announcements • Review of Classes • Examples • Review of Graphics • Examples (see source code from last week) • Assignment 3 Approach • Midterm 2 www.michaelliut.ca/cs1md3
Reminders/Announcements • Michael will be holding office hours Tuesday 11:30am-1pm in ITB 242 – subject to change • Assignment 3 – Due Thursday, March 13 (11 pm) • Assignment 4 now posted • Due Monday, April 7 (11 pm) • Midterm 2 – Monday, March 17 @ 4:30-5:20 in T28/001 Check the announcements page regularly www.michaelliut.ca/cs1md3
Review of Classes • Take a look at the sample code given with this week’s tutorial slides: • class_1.py • class_2.py • class_3.py • class_4.py (final) • Each file builds off the previous • Can use these files as practice www.michaelliut.ca/cs1md3
class_1.py www.michaelliut.ca/cs1md3
class_2.py www.michaelliut.ca/cs1md3
class_3.py www.michaelliut.ca/cs1md3
class_4.py www.michaelliut.ca/cs1md3
Review of Graphics • A good way to review graphics is to try to create your own graphics and manipulate • Work your way from small objects and shapes into the assignment • Go through last week’s tutorial slides and source code • ACTUALLY COMPILE THE CODE • Manipulate and play with the code to see what it does • Look at the Graphics documentation to get an idea of the functions www.michaelliut.ca/cs1md3
Assignment 3 Approach • Use whatever you created in part 1 in part 2 (assuming you implemented everything correctly in order for everything to transfer over • Follow the guidelines provided in the problem description (in pdf) www.michaelliut.ca/cs1md3
Assignment 3 Approach (2) • Things to note: • Required to use lists to store the data (i.e. boxes) • You have a list FIELDS; the list contains FIDs; FIDs contain (1-37 boxes); FIELDS with a length of 2 means that the boxes (8-10) are selected; it will contain the highlighted box & brown boxes; FIELDS with a length of 1 means that the boxes (8-10) are NOT selected; it will contain ONLY the brown boxes www.michaelliut.ca/cs1md3
Midterm 2 • Monday, March 17 @ 4:30-5:20 in T28/001 • Sample Midterm should be posted: TBH www.michaelliut.ca/cs1md3
Assignment 4 Overview • Use what was based in Assignment 3 as a foundation • Follow instructions carefully • Download the iPhone/Android app called Unblock Me to get an idea of the functionality www.michaelliut.ca/cs1md3
The End www.michaelliut.ca/cs1md3