ECE 150: Introduction to Programming (Fall 2009)

This page has links for all of the sample applications I’ve built to demonstrate a specific feature of C#, and correspond to a specific week’s tutorial.  All of these applications were built using Windows Presentation Foundation, and therefore require Windows to run.

Each application is available in a number of different forms; choose the download link that best suits your needs.

  • Run from Web – launches an XBAP version of the application right inside your browser.  Requires Internet Explorer or Firefox to work, as well as the appropriate security settings and browser configuration.  It may work, it may not, but if it does you don’t need to do anything further.  Always up-to-date.  Only available for the samples that can run under partial trust.
  • Install – downloads a setup application and installs the application onto your computer.  Double click the downloaded setup.exe program to install and run.  Automatically updates to the latest version.
  • Download .ZIP – links to a zip archive containing the program executable and associated libraries.  The only version that works on Nexus, but it also doesn’t update itself.

Source code for the applications is also available from http://code.nicholasarmstrong.com/teaching/ece150/.  Be aware that these applications were designed to demonstrate a specific feature of C# rather than for easy source code readability; in addition, some advanced programming constructs, techniques, and frameworks not covered in ECE 150 are used.  I make no guarantees to the robustness or architectural quality of these applications; they are demos, not professionally written applications.

Week 2: Simple Types

This sample application detects the basic C# types (like int, long, double, string, char, and bool) from the values you type in, as well as describing what forms each of these types.  It also allows you to see which types can be converted to which other types, and the correct method to use for the conversion.

Screenshot | Run from Web | Install | Download Zip

Week 3: Loops

This sample application demonstrates the basic concepts behind loops in C# (for, while, and do-while) by presenting a number of sample programs that you can run and tweak.  Each sample application highlights a set of boxes arranged in a grid according to the provided loop; the application dynamically compiles the provided samples so that you can see the effect of changing various loop parameters.

Screenshot | Install | Download Zip