1 / 15

Computer Science 1MD3 Introduction to Programming

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.

dagmar
Download Presentation

Computer Science 1MD3 Introduction to Programming

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 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

  2. 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.

  3. 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

  4. 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

  5. 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

  6. class_1.py www.michaelliut.ca/cs1md3

  7. class_2.py www.michaelliut.ca/cs1md3

  8. class_3.py www.michaelliut.ca/cs1md3

  9. class_4.py www.michaelliut.ca/cs1md3

  10. 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

  11. 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

  12. 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

  13. Midterm 2 • Monday, March 17 @ 4:30-5:20 in T28/001 • Sample Midterm should be posted: TBH www.michaelliut.ca/cs1md3

  14. 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

  15. The End www.michaelliut.ca/cs1md3

More Related