CS108 SPRING SEMESTER 2012 SCHEDULE This is a tentative schedule, subject to adjustment as the term evolves. The official version is the one posted to http://www.cs.bu.edu/courses/cs108/. Check often for updates, examples, assignments, labs, etc. Week Date Class # Subject Readings Assignment 1 WED 1/18 1 Introduction Zelle 1.1-1.8 THU 1/19 LAB Lab 00: Set up lab account FRI 1/20 2 Python introduction, output Example: 2012.01.20.interactive.txt Example: currencyConversion.py Zelle 1.1-1.8 HW01, due 1/24 2 MON 1/23 2 Input and Output Example: inputExamples.py Zelle 1.1-1.8 WED 1/25 3 Computing With Numbers Example: snackTime.py Example: numberFormat.py Zelle 2.1-2.5 THU 1/26 LAB Lab 02: Arithmetic, Number Formatting, Math Library HW02, due 1/31 FRI 1/27 4 Higher Math Example: 2012.01.27.interactive.txt Example: treeHeight.py Zelle 2.6-2.8 3 MON 1/30 5 Repetition with Definite Loop Example: bottlesOfBeer.py Zelle 3.1-3.3 WED 2/1 6 Iterative Numeric Processing Example: cashRegister.py Example: average.py Example: factorial.py Zelle 3.4-3.7 THU 2/2 LAB Lab 03: Nested Loop Structures & Accumulator Variables HW03, due 2/7 FRI 2/3 7 QUIZ 1 Review/Discuss Homework 4 MON 2/6 8 Strings and string operations Example: username.py Example: reverse.py Zelle 5.1-5.3 WED 2/8 9 String object/methods Character encoding Example: replace.py Example: encodingASCII.py Example: decodeASCII.py Zelle 5.1-5.3 THU 2/9 LAB Lab 04: String operations and characters HW04, due 2/14 FRI 2/10 10 Codes and ciphers Discuss homework 5 MON 2/13 11 Object Oriented Programming Introduction to Graphics Zelle 4.1-4.3 WED 2/15 12 Object Oriented Programming (continued) Zelle 4.1-4.3 THU 2/16 LAB Lab 05: Graphics practice HW05, due 2/21 FRI 2/17 13 QUIZ 2 6 MON 2/20 UNIVERSITY HOLIDAY, NO CLASSES TUE 2/21 14 MONDAY SCHEDULE Functions, Parameters, Return Values Example: birthdaySong.py Example: smiley.py [starter code] Example: smiley.py [completed code] Zelle 6.1-6.7 WED 2/22 15 Example: returnValues.py Logical Expressions Example: 2012.02.22.interactive.txt Decisions Making Example: grading.py Example: minOf3Int.py Zelle 7.1-7.3 THU 2/23 LAB Lab 06: Functions and Decisions HW06, due 2/28 FRI 2/24 16 Snow Day 7 MON 2/27 17 Repetition with Indefinite Loop Example: average2.py [counter-controlled] Example: average3.py [interactive] Zelle 8.1-8.3 WED 2/29 18 Repetition with Indefinite Loop (continued) Example: average4.py [sentinel controlled] Example: average5.py [sentinel controlled] Example: validatingUserInput.py Example: yesorno.py [infinite loop] Example: busyloop.py Zelle 8.1-8.3 THU 3/1 LAB Lab07: Indefinite Loop HW07, due 3/6 FRI 3/2 19 QUIZ 3 Review/Discuss Homework 8 MON 3/5 20 Lists Example: histogram.py Zelle 11.1-11.3 WED 3/7 21 Recap: Lists Example: wordCount.py [list version] Dictionaries Example: 2012.03.07.interactive.txt Example: histogram2.py [dict version] Example: wordCount2.py.py [dict version] Zelle 11.6 THU 3/8 LAB Lab 08: Using Dictionaries HW08, HW08, due 3/10 FRI 3/9 22 Discuss homework Week Date Class # Subject Readings Assignment MON 3/12 SPRING BREAK WED 3/14 SPRING BREAK THU 3/15 SPRING BREAK FRI 3/16 SPRING BREAK 9 MON 3/19 23 Databases and SQL Example: sqlClient on cs-webapps.bu.edu SQL Tutorial WED 3/21 24 Python Database API Example: stocks.db Example: dbExample.py DBAPI webapges THU 3/22 LAB Lab 09: Databases and SQL HW09, due 3/27 FRI 3/23 25 QUIZ 4 Review/Discuss Homework 10 MON 3/26 26 SQL UPDATE, discuss homeowrk 9 Example: dbExample.py WED 3/28 27 The World Wide Web and HTML Example: example.html Generating HTML from Python Example: helloWeb.py HTML Tutorial THU 3/29 LAB Lab 10: HTML and Python Web Applications HW10, due 4/3 FRI 3/30 28 Generating HTML from Python Transferring files to csa2 Example: helloWeb.py 11 MON 4/2 29 HTML Forms (introduction) Example: form-example.html Example: table-example.html Example: contact-form.html HTML Tutorial WED 4/4 30 HTML Forms - CGI Processing HTML forms Example: whosThere.py Example: webcalc.py HTML Tutorial THU 4/5 LAB Lab 11: HTML Forms and CGI HTML Tutorial HW11, due 4/10 FRI 4/6 31 QUIZ 5 Discuss Final Project Final Project, due 5/2 12 MON 4/9 32 Web App with Database Example: webStockListing.py.txt WED 4/11 33 Web App with Database Example: webStockListing.py.txt THU 4/12 LAB Lab 12: Web Application with Database FRI 4/13 34 Web App with Database Example: webStockListing.py.txt Loading data into MySQL from a CSV file Example: parseCarsIntoDB.py HW12, due WED 4/18 13 MON 4/16 UNIVERSITY HOLIDAY, NO CLASSES WED 4/18 35 Discuss homework 12 THU 4/19 LAB Work on Final Projects FRI 4/20 35 Web Apps - Cookies and Session State Example: snoop.py.txt Example: rememberMe.py.txt Python Chip Cookies MON 4/23 35 QUIZ 6 Work on Final Project/Topics of Interest WED 4/25 37 Work on Final Project/Topics of Interest THU 4/26 LAB Lab Exam during Lab Sections FRI 4/27 38 Work on Final Project No class meeting, extra office hours during class time. 15 MON 4/30 39 Work on Final Project No class meeting, extra office hours during class time. WED 5/2 40 Exam Review Final Project Due THU 5/10 Final Exam @ PSY B53 Thursday 5/10 3:00-5:00pm