Introduction to Programming

NETB101 Timetable

Week
No.
NETB101
Topics
NETB101
Dates
Sources
Worked Examples & Problem Solving

NETB121
Topics
NETB121
Dates
1.
Chapter 1 Introduction I
What is Programming? The Anatomy of a Computer. Machine Code and Programming Languages.
4.10



Your programming environment: introduction to Linux/Unix OS. Your first program [pdf]
4.10
6.10
2.
Chapter 1 Introduction II
Analyzing Your First Program. Errors. Problem Solving: Algorithm Design
11.10
ch01.zip
hello.cpp
we1.pdf

C++ program structure. Input and output. Common errors. Algorithm implementation [pdf]
11.10
13.10
3.
Chapter 2 Fundamental Data Types I
Variables. Arithmetic.
18.10
ch02.zip
volume1.cpp
average.cpp
we1.pdf


Numeric data types and arithmetic operations [Moodle]
18.10
20.10
4.
Chapter 2 Fundamental Data Types II
Input and Output. Strings.
25.10
ch02.zip
434.cpp
volume2.cpp
initials.cpp
we2.pdf
vending.cpp
stamps.cpp

Strings [Moodle] 25.10
27.10







1.11
3.11
5.
Chapter 3 Decisions (Basic Control Flow) I
The if Statement. Comparing Numbers and Strings.
8.11
ch03.zip
elevator1.cpp
round.cpp
we3.pdf

Basic control flow: conditional statements
[Moodle]
8.11
10.11
6.
Test_1
15.11



First exam of practice [Moodle] 15.11
17.11
7.
Chapter 3 Decisions (Basic Control Flow) II
Multiple Alternatives. Nested Branches. Problem Solving: Test Cases. Boolean Variables and Operators. Application: Input Validation.
22.11
ch03.zip
richter.cpp
tax.cpp
elevator2.cpp



Boolean variables and operators. Input validation [Moodle] 22.11
24.11
8.
Chapter 4 Loops I
The while Loop. Problem Solving: Hand-Tracing. The for Loop. The do Loop.
29.11
ch04.zip
doublinv.cpp
invtable.cpp
we1.pdf

Repeatedly execute statements: while, for and do loops [Moodle] 29.11
1.12
9.
Chapter 4 Loops II
Processing Input. Problem Solving: Storyboards. Common Loop Algorithms. Nested Loops. Random Numbers and Simulations.
6.12
ch04.zip
ccnumber.cpp
dice.cpp
montecarlo.cpp
powtable.cpp
sentinel.cpp


Nested loops. Processing inputs. Random numbers and simulations [Moodle] 6.12
8.12
10.
Chapter 5 Functions I
Functions as Black Boxes. Implementing Functions. Parameter Passing. Return Value. Functions without Return Values. Problem Solving: Reusable Functions.
13.12
ch05.zip
cube.cpp
ch05_we1.pdf
ch05_we2.pdf

Function definition, parameter passing by value, return value and procedures [Moodle] 13.12
15.12
11. Test_2 20.12



Second exam of practice
20.12
22.12
12.
Chapter 5 Functions II
Problem Solving: Stepwise Refinement. Variable Scope and Global Variables. Reference Parameters.
3.01
ch05.zip
intname.cpp
account.cpp

ch05_we3.pdf

Variable scope and global variables. Passing value by reference. Recursive functions [Moodle] 3.01
5.01
13.
Chapter 6 Arrays and Vectors I
Arrays. Common Array Algorithms. Arrays and Functions.
Adapting Algorithms, Discovering Algorithms by Manipulating Physical Objects.
10.01
ch06.zip
largest.cpp
functions.cpp
ch06_we1.pdf

Arrays and vectors. Common array algorithms. Arrays and vectors in functions [Moodle] 10.01
12.01
14.
Chapter 6 Arrays and Vectors II
Two-Dimensional Arrays. Vectors.
17.01
ch06.zip
medals.cpp
ch06_we2.pdf

Two-dimensional arrays [Moodle] 17.01
19.01
15.
Final Test
23.01



Final Exam of practice 23.01
24.01

Term exam
31.01.2012
8:00
131-1

Term exam