CEV208 – Lecture Notes

Week 1 (14-15 Feb 2024) – Introduction to Programming & Basic Calculations with Python

Prologue: Preparing to Program (Chapter 1 in Lin et al.)

Python as a Basic Calculator (Chapter 2 in Lin et al.)

Python Basics (Chapter 1 in Kong et al.)

Week 2 (21-22 Feb 2024) – Scientific Calculations with Python (Using Predefined Functions, Writing Our Own Functions)

Python as a Scientific Calculator (Chapter 3 in Lin et al.)

Functions (Chapter 3 in Kong et al.)

Week 3 (28-29 Feb 2024) – Basic Plots in Python (Positional Input Parameters to Functions & Lists, Tuples, Strings)

Basic Line and Scatter Plots (Chapter 4 in Lin et al.)

Variables and Basic Data Structures (Chapter 2 in Kong et al.)

Week 4 (6-7 Mar 2024) – Customized Plots & Arrays

Customized Line and Scatter Plots (Chapter 5 in Lin et al.)

Week 5 (13-14 Mar 2024) – Basic Diagnostic Data Analysis (Array Functions & Loops & Branching)

Basic Diagnostic Data Analysis (Chapter 6 in Lin et al.)

Branching Statements (Chapter 4 in Kong et al.)

Week 6 (20-21 Mar 2024) – Loops & Branching & Writing Code

Examples of One-Dimensional Loops and Branching (Section 6.2.5 in Lin et al.)

Docstrings (Section 6.2.6 in Lin et al.)

Three Tips on Writing Code (Section 6.2.7 in Lin et al.)

Week 7 (27-28 Mar 2024) – Two Dimensional Diagnostic Data Analysis (Two Dimensional Arrays & Nested Loops)

Two Dimensional Diagnostic Data Analysis (Chapter 7 of Lin et al.)

Week 8 (3-4 Apr 2024) – Random Numbers & Boolean Expressions

Random Numbers in Computers (Section 8.2.1 in Lin et al.)

Scalar Boolean Type and Expressions (Section 8.2.2 in Lin et al.)

Nested Branching (Section 8.2.3 in Lin et al.)

Week 9

Holiday

Week 10 (17-18 Apr 2024) – Midterm Exam & While Loops

Looping an Indefinite Number of Times Using while (Section 8.2.4 in Lin et al.)

More on Nested Loops (Section 8.2.6 in Lin et al.)

Week 11 (24-25 Apr 2024) – Making Multiple Subplots & Conditionals Using Floating-Point Numbers

Making Multiple Subplots (Section 8.2.5 in Lin et al.)

Conditionals Using Floating-Point Numbers (Section 8.2.7 in Lin et al.

Week 12 (2 May 2024) – Review & Software Development Process

Writing Simple Programs (Chapter 2 of Zelle)

Week 13 (8-9 May 2024) – Project Demonstrations & Visualization

3D Plotting (Chapter 12.2 in Kong et al.)

Working with Maps (Chapter 12.3 in Kong et al.)

Summary and Problems (Chapter 12.5 in Kong et al.)