Introduction to Programming

Back to Tutorials

Next Lesson

 

Lesson 2: Programming Concepts

Lesson Requirements
Nothing.

Lesson Summary
The second Lesson in this Introduction to Programming Tutorial details some common terms and methods that Programmers use in the world of Programming.

Hurry Up and Decide!
Conditional statements allow us to decide whether or not to perform certain parts of the Program. We decide this by using a condition. For example, when we make coffee we only put in sugar IF the assumption "I like sugar in my coffee" is TRUE.

Stop Repeating Yourself
Loops allow us to repeat a specified task a certain number of times. For example, let's use our making coffee Program: We want to add x spoonful's of sugar to our coffee, where x is a number.

Alternatively, we keep adding sugar WHILE the number of spoonful's added so far is less than the number we require.

Conditions and Loops are very important aspects of Programming. They both form the backbone of controlling how the Program behaves -- that is, they control the "program flow".

 

Back to Tutorials

Next Lesson

 


Copyright © 1997, John Crickett & Neil Henderson.
Legal Information