Computing
JavaScript Examples
Objects
Creating objects in JavaScript and assigning properties and methods.
C# Programming Course
Variables
Declaring variables and assigning values to them. A quick introduction to data types.
- Tutorial
- Declaring Variables Video
- Assigning Variables Video
- Mind Map Image
- Mind Map pdf
- Annotated Code Samples
- Worksheet
- Question Generator

Procedures and Functions
Creating named blocks of code that can be used and re-used to perform specific tasks.
- Tutorial
- Procedures Video
- Procedures with Parameters Video
- Functions Video
- Mind Map Image
- Mind Map pdf
- Annotated Code Samples

Variables 2
The scope of variables. Global variables and local variables.
- Tutorial
- Global Variables Video
- Local Variables Video
- Mind Map Image
- Mind Map pdf
- Annotated Code Samples

Variables 3
The scope of variables. Global variables and local variables. Passing by value and by reference.
Repetition
Executing statements and blocks of code multiple times, using for, foreach, while and do...while loops.
String Methods
Accessing elements, searching, transforming, adding to and removing from strings.
Arrays
Declaring and working with arrays.
- Tutorial
- Declaring and Assigning Arrays Video
- Using Array Literals Video
- DisplayArray Example Video
- Mind Map Image
- Mind Map pdf
- Lab Exercises
- Annotated Code Samples

Validation, Errors and Testing
Validation checks, types of errors and testing strategies.
Other Topics
- Basic Examples - Starting with "Hello World!" and moving to asking the user for their name.
- Visibility and Properties - private and public modifiers. C# properties.
- QuickSort - two different implementations. [A2]
- Programming Paradigms - different ways of approaching programming. [A2]
Extended Examples
The best way to learn to program is to program! Follow these extended examples, actually entering the code into Visual C# Express, and see how the programs evolve. Make sure you understand how they work. Try changing parts of the code to see what happens. Can you extend and improve the programs? Keep asking for help with any parts you don't understand.
- Guess the Number Game - Higher or Lower. Game loops, user input and parsing. Random numbers.
- Hangman - Treating strings as arrays. Character arrays.
- A Mini-Contacts Application - Add people to a phonebook. The application uses enumerations, structs, arrays, constants, loops, methods, switch blocks and more.
- Adventure Game Part 1 - Creating a Class as a template for rooms in a maze. Find your way around the adventure, moving from room to room.
- Adventure Game Part 2 - Adding an Item class. Players can now find items in the rooms and pick them up.
- Adventure Game Part 3 - Adding a Challenge class. Players must now find and use items to progress through the adventure game.
- My Pet Dialog - A Windows Forms application. Creating a second form as a dialog. Adding a property to the dialog.
- Moving Images Part 1 - A Windows Forms application. Adding an image to the form in a picture box. Moving the picture box across the form.
- Moving Images Part 2 - Using the arrow keys to move an image around a form.
- Moving Images Part 3 - Using a timer to control the movement of an image around a form.
- Timetable C# Solution Files - a Visual Studio Solution folder for a timetable application.
Flash Demos and Quizzes
These are Flash swf files. They walk through some simple examples. Some will have interactive quiz elements.
- Hello World! - First steps in writing a C# program.
- Say Hello - Calling a function from the
Mainmethod. - Hello Bob - Passing a string to a function.
Video Tutorials
These are Quicktime movies, walking through examples in Visual Studio. Broadband required!
Windows Forms Projects
- List Example 1 - Using List<string> and List Boxes. [9.2MB 04:13]
- List Example 2 - Moving items between List Boxes. [15.2MB 06:26]
- List Example 3 - Navigating and updating lists with buttons. [31.9MB 13:24]
C# Labs
The Labs include programming tasks to help you practise the concepts you have been learning. This is where you get better as a programmer! The tasks within a lab tend to get harder towards the end; do what you can to stretch your knowledge. Remember, help is always available - just ask.
- Lab 1 - Working with the Console.
- Lab 3 - Methods: functions and procedures.
- Lab 4 - For loops, times tables, reading and writing to text files.
- Lab 5 - Lots of loops.
- Lab 6 - Using arrays.
- Lab 7 - Creating a quiz using arrays and structs.
- Lab 8 - Creating an adding game for two players.
- Lab 10
- Lab 11 - Formatting output, modulus operator.
- Lab 12 - Arrays, Bubble Sort.
- Lab 13 - 2D arrays, structs, switch.
- Revision Lab 1 - Practise, practise, practise.
- Revision Lab 2 - Math methods, string methods, records, fields, program design and testing.
C# Worksheets
These are to be printed out and completed with pencil and paper, away from a computer. Where appropriate, answers can later be checked on a computer.
- Variables 1 - declaring and initialising variables of various data types.
C# Homework and Test Answers
Databases
- Data Layers - Implementing a data layer in C#. [A2]
- SQL SELECT - Selecting records from a single table.
Abstract Data Types [A2]
- Linear Lists - Simple lists. Implementing an ordered list as a subclass of an unordered list.
- Linked Lists - Using pointers to specify the next element in a list.
- Stacks - Using an array or a linked list.
- Queues - Using a linked list.
- Pointers - Declaring pointer variables, assigning memory addresses and obtaining values from pointers.
- Graphs - Depth first traversal.
- Simulations - Customers queueing and servers serving.
Web Design
- Web Design 1 - Basic mark-up, viewing the source
- Web Design 2 - Adding styles
- Web Design 3 - Div, id, floating, images and columns
- Web Design 4 - Class, id and more styles
- Web Design 5 - Adding behaviour with JavaScript
- Web Design 6 - Notes on HTML, XHTML, CSS and in-page links
- Tag Gallery - Examples of common elements in html
- CSS Property Gallery - Examples of common properties and values in style rules


