Lesson 1: A Bit of an Operation

Outline:

  1. Welcome!
  2. Representing data: binary and hexadecimal
  3. Numerical operations
    • logical ops: &&, ||, !
    • bitwise ops: &, |, ~, ^
  4. The C programming language
  5. Course logistics
    • resources:
      • Course website: lesson summaries, assignments, code samples, etc.
      • Slack: questions, announcements
      • Gradescope: assignment submissions
      • Moodle: gradebook
    • policies:
    • advice from prior students
  6. Working with C
    • Unix/Linux and mantis.mathcs.carleton.edu (see the Resources page for extra help)
    • VS Code
    • hello.c and bitwise.c, revisited
  7. Next steps

Want additional practice?

The DiS online textbook is adding exercises. Try out the exercises for Ch. 1 to get more practice.

Reading assignment (to be completed by the next class):

Bitwise operators and your first assignment:

Getting started working in C:

Note: The examples in Sec. 1 compare Python to C. You can find Java versions in Sec. 16.