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.

Declaring a variable

Procedures and Functions

Creating named blocks of code that can be used and re-used to perform specific tasks.

Declaring a variable

Variables 2

The scope of variables. Global variables and local variables.

Local variable scope

Variables 3

The scope of variables. Global variables and local variables. Passing by value and by reference.

Variables 4

The role of variables. Some of the different jobs that variables perform.

Constants

Values that don't change throughout the program.

Data Types

Some of the different types commonly used in C#.

Records and Fields

Using the C# struct to group related variables.

Enumerations

Making code more readable and restricting method arguments.

Selection

Making decisions using if, else, switch and case.

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.

Assigning Arrays

Text Files

Writing to and reading from text files.

Searching and Sorting

Linear search and bubble sort.

Validation, Errors and Testing

Validation checks, types of errors and testing strategies.

Other Topics

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.

Flash Demos and Quizzes

These are Flash swf files. They walk through some simple examples. Some will have interactive quiz elements.

Video Tutorials

These are Quicktime movies, walking through examples in Visual Studio. Broadband required!

Windows Forms Projects

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.

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.

C# Homework and Test Answers

Databases

Abstract Data Types [A2]

Web Design