Lesson 1: A Bit of an Operation
Outline:
- Welcome!
- Representing data: binary and hexadecimal
- Numerical operations
- logical ops:
&&,||,! - bitwise ops:
&,|,~,^
- logical ops:
- The C programming language
- first introduction:
hello.c - numerical operations:
bitwise.c - there will be more samples available for you to try out
- first introduction:
- Course logistics
- resources:
- Course website: lesson summaries, assignments, code samples, etc.
- Slack: questions, announcements
- Gradescope: assignment submissions
- Moodle: gradebook
- policies:
- we’ll discuss the policies in the Syllabus more Wednesday and Friday
- assignments: approximately weekly, first one due Friday
- advice from prior students
- resources:
- Working with C
- Unix/Linux and
mantis.mathcs.carleton.edu(see the Resources page for extra help) - VS Code
hello.candbitwise.c, revisited
- Unix/Linux and
- Next steps
- complete Lab 0: Using VS Code and
mantis– do this today! - read and start the first assignment – due Friday afternoon!
- explore the next few samples
- complete Lab 0: Using VS Code and
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:
- DiS Sec. 1.1: Getting Started Programming in C
- Skim the next few sections in DiS to get a feel for print statements, if statements, functions, and arrays
Note: The examples in Sec. 1 compare Python to C. You can find Java versions in Sec. 16.