Spring 2019 — Schedule

CS 1110/1111 share content, structure, material, PAs, submission site. Due to the class meetings, our schedule has been adjusted as follow.
Instructors and TA office hours can be found at the main CS 1110/1111 website.
PAs are due the same dates, for both CS 1110 and CS 1111
Date Day Lecture Topics / Slides Notes / Readings Programming Assignments (PAs) In-class exercises
01/14 Mon 1 Syllabus
Course overview (pdf)
Responsibilities (pdf)
    Do and Don't
Crossword
01/16 Wed 2 Ambiguity in algorithms (pdf) Ch. 1, WikiHow - write pseudocode   Activity: Paper airplane

(Please Install Python, Pycharm, PyGame before next class meeting)
01/21 Mon MLK Holiday (No class)
01/23 Wed 3 Transition to code (pdf)
transition-to-code.py (text version)
Ch. 2
PyCharm
  (starting from 01/23, lab-style work included, please bring your laptop)

Activity: pseudocode (For more "problem solving" practice, try this)
01/28
Add deadline
Mon 4 Turtle (Good refreshing/introduction to programming; will not be tested)

examples (turtle)
Turtle documentation    
01/30 Wed 5 Basics: Data type, Variables (pdf), Input and Output (pdf) Ch. 3, 4, 5.2.4-5.2.5   Activity: In-class-lab1: 111x-Lab03-Art-Contest (turtle)  (submit your art work to the submission site by today, 01/30, 11:59pm)
02/04 Mon 6 Functions (pdf)
  • Overview
  • Void function and value-returning function
  • Return and print
  • Tracing through code
function-04feb2019.py (sample solution) (text version)
Ch. 3, 4, 5, 8-8.3
PythonTutor
  Activity:
02/06 Wed 7 Functions (pdf)
  • Pass by value and pass by reference (We'll revisit passing by reference when we discuss complex data types)
  • Functions call functions, importing existing functions
  • Scoping: local and global variables
  • Tracing through code
Ch. 5, 8-8.3 PA 01 greeting (due 02/06) *finalized, please proceed (verified on 01/29)
PA 02 nonsense (due 02/06)
PA 03 dating (due 02/08)
PA 04 c2f (due 02/08)
Tracing code: Print and return: Import existing module: Local and global scoping:
02/11 Mon 8 Functions (pdf)
  • More Scoping: local and global variables
  • Multiple functions
  • Named/optional parameters
  • Tracing through code
named-optional-param-11feb2019.py (text version)
Ch. 5, 8-8.3 PA 05 maydate (due 02/11)
PA 06 conversion (due 02/11)
Multiple functions and scoping: Local and global scoping: Activity: Named/optional parameters and default values
Sample solution:
02/13 Wed 9 Conditionals (pdf) Ch. 6-6.2 PA 07 gpa (due 02/13)
PA 08 bmr (due 02/15)
Tracing through functions:
local-global-scope-banking.py (text version)

Multiple functions, importing modules, and conditions:
multiple-fns-and-import-module.py (text version)
Sample solution: In-class lab2: 111x-Lab05-paper (exam1 review)

practice: decision
02/18 Mon 10 Exam 1 note
Exam 1 Review
topic list PA 09 aveages (due 02/18) e1-recap-1.py (sample solution) (text version)
e1-recap-2.py (sample solution) (text version)
e1-recap-3.py (sample solution) (text version)
e1-recap-4.py (sample solution) (text version)
e1-recap-5.py (text version)
e1-recap-6.py (sample solution) (text version)
e1-recap-7.py (sample solution) (text version)
02/20 Wed 11 Exam 1, Thornton Hall E303 (rescheduled due to snow day)
02/25
Drop deadline
Mon 12 Repetition

Exam 1, Thornton Hall E303
Ch. 7, 10, 12   practice: loop
02/27 Wed 13 Repetition
Slides (led by Sean Gatewood and Alexander Monaco)

More slides (pdf)
Ch. 7, 10, 12
  In-class lab3: Repetition
sample solution

practice: loop
03/04 Mon 14 More repetition (pdf)
String processing (pdf)
Repetition: Ch. 7, 10, 12
Style: Ch. 3.4, 8.2.9, docstring, PEP 252, PEP 8
  for loop and while loop review more examples:
03/06 Wed 15 More repetition
List (pdf)
note (text version)
Testing and debugging (pdf)
Ch. 7, 10, 12 PA 10 calculator (due 03/06)
PA 11 higher_lower (due 03/08)
Note: starting PA 11, some points will be reserved for styling (including meaningful docstrings and good variable names)
Testing and debugging: Loop with string: Loop with list: Nested loop and 2D list:
03/11 Mon Spring recess (No class)
03/13 Mon Spring recess (No class)
03/18
Withdraw deadline
Mon 16 dict (pdf)
note (text version)
Ch. 13   practice: dict
03/20 Wed 17 dict Ch. 13 PA 12 higher_lower_player (due 03/20)
PA 13 str_redux (due 03/20) No longer required
macDonald_song-dict.py (sample solution)
macDonald_song-list.py (sample solution)
macDonald_song-string.py (sample solution)
book-inventory.py (sample solution)

In-class lab4: dict (sample solutions)
03/25 Mon 18 Reading (local files) (pdf) Ch. 16.2, 27.3, Delimiter-separated_values PA 14 map_reduce (due 03/25) practice of the day (text version)

Activity:
friends.py (sample solution) (text version)
(data file friends.csv, friends-2.csv)
03/27 Wed 19 Reading (from Internet) (pdf) Ch. 16.2, 27.3, Delimiter-separated_values PA 15 credit_card (due 03/27)
PA 16 gradebook (due 03/29)
local files: practice of the day, todo.csv (sample solution)

Activity: More practice (local files):
04/01 Mon 20 Exam 2 Review topic list (please remember to check exam2 topic list)
  e2-recap-1.py (text version)
e2-recap-2.py (text version) (sample solution) (text version)
e2-recap-3.py (text version) (sample solution) (text version)
e2-recap-4.py (text version) (sample solution) (text version)
e2-recap-5.py (text version) (sample solution) (text version)

cs111x-Jeopardy
04/03 Wed 21 Exam 2, Thornton Hall E303
04/08 Mon 22 Gamebox gamebox summary PA 17 Lous_list (due 04/08) Examples: (text version)
basic-arrow-keys.py, spaceship.jpg
basic-carry-stuff.py
healthbar.py
falling-coins.py
starfield.py
infinitejumper.py
another-jumper.py
animation.py, sprite.png

basic_jumping.py
basic_move_camera.py
basic_end_game.py
basic_wrap.py
basic_collect_thing.py
basic_add_score.py
basic_random_create_coin.py

Timer [game-ex1.py, game-ex2.py, game-ex3.py, game-ex4.py, game-ex5.py, game-ex6.py ]

first game: [shooting-ex1.py, shooting-ex2.py, shooting-ex3.py, shooting-ex4.py, shooting-ex5.py]
04/10 Wed 23 RegEx (pdf) Ch. 25, on designing RegExs

https://regexr.com
https://regex101.com
https://regexone.com/
PA 18 spellcheck (due 04/10) practice-of-the-day

Examples:
pattern.html
first-regex.txt
regex-ex1.py (sample solution)
regex-ex2.py (sample solution)
regex-ex3.py (sample solution)
regex-ex4.py (sample solution)

In-class lab5: 111x-Lab12-pong (gamebox)
04/15 Mon 24 RegEx Ch. 25, on designing RegExs

https://regexr.com
https://regex101.com
https://regexone.com/
PA 19 flappy bird (due 04/15) Examples:
regex-sample-data.txt
regex-simpsons.py (sample solution)
simpsons_part2.py
regex-phone-from-url.py (sample solution)
regex-split-string.py (sample solution)
regex-replacement.py
04/17 Wed 25 Writing Ch. 16.3 Game project - Checkpoint 1 (due 04/17) In-class lab6: 111x-Lab13-email (regex)

Examples:
write-file-w-mode-using-print.py
write-file-a-mode-using-print.py
write-file-w-mode-using-write.py
write-file-a-mode-using-write.py
example data file: todo.csv
04/22 Mon 26 Exceptions Ch. 17 PA 20 regex (due 04/22) Exercises:
exception-intro.py
exception-handling.py
exception-tracing1.py
exception-tracing2.py
exception-tracing3.py
exception-tracing4.py
exception-tracing5.py
exception-tracing6.py
exception-tracing7.py
exception-tracing8.py
exception-tracing9.py
exception-tracing10.py
exception-tracing11.py
exception-tracing12.py
04/24 Wed 27 Flex day   Game project - Checkpoint 2 (due 04/24)
PA 21 salary (due 04/26)
In-class lab7: 111x-Lab14-review (final exam review)
04/29 Mon 28 Final Exam review

Note: TA review session, 1-May, 2pm-4pm, in McLeod Hall
topics list Game project (due 04/29) Practice:
e3-review-exception-1.py
e3-review-exception-2.py
e3-review-file-reading.py
e3-review-list-string-dict.py
e3-review-file-writing-book1.py (sample-solution)
e3-review-file-writing-book2.py (sample-solution)
e3-review-regex-phone.py (sample solution)
05/04 Sat FE Final Exam — Saturday 4-May, 7:00-10:00 PM (CS 1111), Room THN E303
Good luck !!


Top Thanks to Professor Kinga Dobolyi and Professor Luther Tychonievich for the input and material provided for this course.