Tutorials
Jump to navigation
Jump to search
You can use the
Create and accumulating variable and use it to sum, count and more.
In this tutorial you use a TreeMap to represent all the countries of the world.
Parse and process XML files using the standard DOM interface.
A step by step guide to programming. Each set of tutorials provides tasks for the student to complete.
Contents
Flags
Flags Tutorial: Practice using graphics commands to draw the flags of different countries.
These examples provide students with the opportunity to become familiar with the basic features of the language. Each task can be completed using a sequence of commands. It is hoped that students will become familiar with the basics of the language: the use of brackets, commas, quotes and semi-colons.
If
Functions
Practice using number functions and operators.
Strings
Use string functions to test a list of Greek names
Conditions
Create patterns on a grid. This exercise uses integer functions and operators.
for
for
loop to make a section of code repeat many times.
Bricks
Practice for loops. In these problems you use bricks to build walls.
Accumulators
TreeMap
DOM Tutorial
DOM Tutorials
Old Links
- World Factbook: In which we process data on countries.
- Functions: In which we calculate values
- Strings: In which we process ancient Greek
- Boxes: In which we test numbers.
- Songs: In which we generate repetitive songs.
- Bricks: In which we practice
for
loops - Accumulate: In which we accumulate over a list.
- Accumulate 2: In which we accumulate over a file.
- DOM: In which we access the Document Object Model for XML.
- SAX: In which we access the "Simple API for XML".
Old Addresses
- Flags: In which we draw pictures.
- Flags: In which we draw pictures.
- World Factbook: In which we process data on countries.
- Function: In which we calculate values
- Strings: In which we process ancient Greek
- Songs: In which we generate repetitive songs.
- Bricks: In which we practice
for
loops - Accumulate: In which we count, add and perform other calculations.
- DOM: In which we access the Document Object Model for XML.
- SAX: In which we access the "Simple API for XML".