CS 8 Introduction to Computer Science

CS 8 Introduction to Computer Science

Summer Session B 2016 - EnrlCd 02832
Department of Computer Science
University of California Santa Barbara

Course Information

  • Instructor: Professor Çetin Kaya Koç         → Koç is pronounced as "Coach"  

  • Class Room: Broida 1640
  • Class Schedule: Tuesday, Wednesday, Thursday 11:00-12:20
  • Koç Office Hours: Tuesday 2:00-5:00pm
  • Koç Office: HFH 1119

  • Teaching Assistants:

  • Lab: Phelps 3525
  • Lab Schedule and TAs:
    Friday 11:00am-12:20pm, EnrlCd: 02849 -- TAs: TBA
    Friday 12:30pm-1:50pm, EnrlCd: 02857 -- TAs: TBA
    Friday 2:00pm-3:20pm, EnrlCd: 02865 -- TAs: TBA

  • TA Office: Trailer 936 Room 104
  • TA Office Hours:

  • Please join the Piazza page for class discussions.  
  • Check the class website and the Piazza page once a day.

  • Slides and other course information are in the folder docx  
  • Homework and Programming Assignments are in the folder hwexpa  
  • IDLE transcripts and Python modules created during lectures are in the folder idle  

  • The grades: cs8SummerB016.htm
    (The Code is your PERMNumber mod 98773; in Python: Code = PERMNumber % 98773)

Midterm and Final Exams

There will be one Midterm Exam and one Final Exam.
The Midterm Exam is on Tuesday, August 30 at 11:00am-12:20pm.  
The Final Exam is on Thursday, September 8 at 11:00am-12:20pm.  

2-pages of notes (cheat sheet) are alllowed during the Exams.
No makeup exam can be given under any circumstances.

Homework Assignments

We will have one homework assignment every week. The homework assignments are due before 5:00pm on Thursdays via Dropbox (a link will be available for every hw). Only an electronic copy (Text, MS Word or PDF) should be submitted. You could scan/pdf your handwritten work, and submit the resulting file. However, low-resolution or small phone-camera images are not accepted.
  • Homework Assignment 1:   hw1.html - due 5:00pm Thu Aug 4
No late hw is accepted.

Programming Assignments

We will have one programming assignment every week. The programming assignments are due before 10:00pm on Fridays via Dropbox (a link will be available for every pa). Detailed information about Python's native programming environment (called IDLE) and the creation and submission of programming assignments is found here: idle+submit.pdf.
  • Programming Assignment 1:   pa1.html - due 10:00pm Fri Aug 5
No late pa is accepted.

Weekly Course Plan

  • Week1: Computer Science. Computer Systems and Terminology. Python Programming Language. Computational Thinking. Integers and Real Numbers. Binary and Hexadecimal Numbers. Algebraic Expressions. Boolean Expressions. Sections 1.1-1.4 and 2.1]

  • Week2: Expressions, Variables, and Assignments. Strings. Lists and Tuples. Objects and Classes. Python Standard Library. Modules: math and fractions. [Sections 2.1-2.5]

  • Week3: Python Programs. Execution Control Structures. User Defined Functions. Python Variables and Assigments. Parameter Passing. Turtle Graphics (Case Study 2, 3). [Sections 3.1-3.5]

  • Week4: Text Data and Strings. Formatted Output. Reading and Writing in Files. [Sections 4.1-4.3]

  • Week5: Decision Control and if Statement. for Loop and Iteration Patterns. More on Lists: Two-Dimensional Lists. while Loop and Loop Patterns. break, continue, pass Statements. [Sections 5.1-5.6]

  • Week6: Dictionaries. Sets. Character Encodings and Strings. Image Processing (Case Study 5). Module: random. Monte Carlo Methods. [Sections 6.1-6.4]

Course Related Links


Grading Rules

  • Programming Assignments: 30 %
  • Homework Assignments: 20 %
  • Midterm Exam: 25 %
  • Final Exam: 25 %

Catalog Specification

Introduction to computer program development for students with little to no programming experience. Basic programming concepts, variables and expressions, data and control structures, algorithms, debugging, program design, and documentation.

Prerequisite Rules

Not open for credit to students who have completed Computer Science 16 or Engineering 3.
CS 8 is a legal repeat for CMPSC 5AA-ZZ.

Academic Integrity at UCSB  

Dr. Çetin Kaya Koç