BBM 101 - Introduction to Programming I (Fall 2014)

Lectures: Wednesdays 13:00-15:45 @D1 (Sec. 1), @D2 (Sec. 2), @D3 (Sec. 3)
Practicum (BBM103): Thursdays 13:00-14:00 @D3 (Sec. 1), @D4 (Sec. 2) and Fridays 15:00-16:00 @D3 (Sec. 3), @D4 (Sec. 4)(Student lists)

When human beings acquired language, we learned not just how to listen but how to speak. When we gained literacy, we learned not just how to read but how to write. And as we move into an increasingly digital reality, we must learn not just how to use programs but to make them.

In the emerging, highly programmed landscape ahead, you will either create the software or you will be the software. It's really that simple: Program, or be programmed. Choose the former, and you gain access to the control panel of civilization. Choose the latter, and it could be the last real choice you get to make.
Douglas Rushkoff, in Program or Be Programmed: Ten Commands for a Digital Age (2010)

Instructors:

Aykut Erdem (Sec. 1)

aykut-at-cs-hacettepe.edu.tr
111
+90 312 297 7500, 146

Erkut Erdem (Sec. 2)

erkut-at-cs-hacettepe.edu.tr
114
+90 312 297 7500, 149

Fuat Akal (Sec. 3)

akal-at-cs-hacettepe.edu.tr
202
+90 312 297 7500, 129

Teaching Assistants:

Burcak Asal

basal-at-cs-hacettepe.edu.tr
122
+90 312 297 7500, 166

Selman Bozkir

selman-at-cs-hacettepe.edu.tr
Multimedia Information Retrieval Laboratory
+90 312 297 7500, 155

Cumhur Yigit Ozcan

cumhuryigitozcan-at-cs-hacettepe.edu.tr
122
+90 312 297 7500, 166

Selim Yilmaz

selimy-at-cs-hacettepe.edu.tr
Information Security Lab

Course Description

This course serves as an introduction to the fundamentals of computer science and programming. It aims to help students with little or no programming experience to gain necessary skills to work with abstract notions for solving computational problems. The course is structured around basic topics such as sequential, selective and repetitive structures, functions, recursion, arrays and pointers, structures and unions, basic input and output and strings. The class will use the C programming language as a medium to provide a basic understanding of basic concepts in computer science, and the students will gain hand-on experience via a set of programming assignments supplied in the complementary BBM 103 Introduction to Programming Practicum.

Schedule (Tentative)

Week Date Topic Notes
1 Sep 24 Introduction, What is computation? [slides] [4-per-page] Video: The birth of the computer, George Dyson
2 Oct 1 Binary representations and the Von Neumann architecture [slides] [4-per-page] PA1 out [pdf]
Reading: The Strange Birth and Long Life of Unix, Warren Toomey
3 Oct 8 Sequential structure [slides] [4-per-page] [codes] Reading: K&R 2
4 Oct 15 Midterm exam #1, Selective structure [slides] [4-per-page] [codes] PA1 due
Reading: K&R 3.1-3.4
5 Oct 22 Repetitive structure [slides] [4-per-page] [codes] PA2 out [pdf]
Reading: K&R 3.5-3.7, 4.1-4.4
6 Oct 29 No class (Republic day)
7 Nov 5 Functions [slides] [4-per-page] [codes] PA2 due, PA3 out
Reading: K&R 4.5-4.10
8 Nov 12 Midterm exam #2
9 Nov 19 Debugging and Arrays [slides] [4-per-page] PA3 due
Reading: K&R 5.1-5.5
10 Nov 26 Pointers [slides] [4-per-page] PA4 out [pdf]
Reading: K&R 5.6-5.11
11 Dec 3 Pointers (cont’d.)
12 Dec 10 Midterm exam #3 PA4 due
13 Dec 17 Structures [slides] [4-per-page] PA5 out
Reading: K&R 6
14 Dec 24 Input and Output, Strings [slides] [4-per-page] Reading: K&R 7

Grading

3 Midterm exams 55% (10 + 30 + 15)
Final exam 40%
Class participation    5%

Reference Books

  • The C Programming Language, 2nd Edition, Brian Kernighan and Dennis Ritchie, Prentice Hall, 1988
  • Practical C Programming 3rd Edition, Steve Oualline, O'Reilly Media, 1997

Important Dates

Programming Assignment 1    1 October, 2014
Programming Assignment 2 22 October 2014
Programming Assignment 3 5 November 2014
Programming Assignment 4 19 November 2014
Programming Assignment 5 3 December 2014
Midterm Exam 1 15 October 2014
Midterm Exam 2 12 November 2014
Midterm Exam 3 3 December 2014
Final Exam To be announced later..

Additional Resources

  • The C Library Reference Guide
  • ISO/IEC 9899 Committee Draft
  • Learning C with GDB
  • C Language Tutorial
  • C FAQ

Tools

Standard Environment

The most efficient way of developing a C program is to use a Unix environment:

  • Command-line
  • Compiler: gcc
  • Debugger: gdb, valgrind
  • Editor: Vim, Emacs, or Sublime Text
To mimic a Unix programming environment on your own computer, you have the following options:
  • On a Linux distribution: sudo apt-get install build-essential or equivalent.
  • On Mac OS 10.6.6 or later: Install Xcode from the App Store, open it, go to Preferences > Downloads > Components and download "Command Line Tools".
  • On Windows: Install cygwin. Please check the packages gcc-core, gcc-g++, gdb.

IDEs

Your programs need to work in the standard environment as we evaluate them on dev.cs.hacettepe.edu.tr. However, if you'd like to use a GUI, these are the IDEs that seem to work well:

  • Code::Blocks (Linux, Mac OS X, Windows)
  • Eclipse (Linux, Mac OS X, Windows)
  • Xcode (Mac OS X)
  • Visual Studio (Windows)

General purpose text editors

  • Vim (Linux, OS X, Windows)
  • Emacs (Linux, OS X, Windows)
  • Sublime Text (Linux, OS X, Windows)

Communication:

The course webpage will be updated regularly throughout the semester with lecture notes, programming and reading assignments and important deadlines. All other course related communications will be carried out through Piazza. Please enroll it by following the link https://piazza.com/hacettepe.edu.tr/fall2014/bbm101

For the BBM 103 related communications, you should also enroll that course in Piazza through the link https://piazza.com/hacettepe.edu.tr/fall2014/bbm103

Policies:

All work on assignments must be done individually unless stated otherwise. You are encouraged to discuss with your classmates about the given assignments, but these discussions should be carried out in an abstract way. That is, discussions related to a particular solution to a specific problem (either in actual code or in the pseudocode) will not be tolerated.

In short, turning in someone else’s work, in whole or in part, as your own will be considered as a violation of academic integrity. Please note that the former condition also holds for the material found on the web as everything on the web has been written by someone else.


© 2014 Hacettepe University