14 August 2011

Lesson 3: Input and output

This lesson covers:

  • Comments
  • Multi-statement lines and multi-line statements
  • Input with the read function
  • Output with the print statement

You should read Lesson 1 and Lesson 2 before this one.

06 August 2011

Lesson 2.1: Zeller's Congruence

This lesson does not cover any new topics. In this lesson, we practice using variables and assignments to solve the problem of finding the day of the week for a given date.

This is an optional lesson. You should read Lesson 1 and Lesson 2 before this one, but you can continue to Lesson 3 without reading this.

05 August 2011

Lesson 2: Variables

This lesson covers:

  • Variables and the rules for naming variables
  • Assignments, to give variables a value
  • Entering programs into a text editor and running them in bc

You should read Lesson 1 before this one.

03 August 2011

Lesson 1: Mathematical Syntax

This lesson covers:

  • Opening a terminal and starting bc
  • Entering numerical expressions (arithmetic and the square root)
  • The difference between real and integer modes
  • The modulo operation

You should read the Welcome post before reading this one, especially if you're running Windows and you need to get a copy of bc.

02 August 2011

Welcome

This blog will introduce you to programming. And not just any kind of programming. Smooth programming.