Ruby:Tutorials
A step by step guide to programming. Each set of tutorials provides tasks for the student to complete.
Drawing
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
if
clauses to selectively print details of some countries but not others.Numbers
Practice using number functions and operators.
Strings
Use string functions to test a list of Greek names
Boxes
Create patterns on a grid. This exercise uses integer functions and operators.
Bricks
Practice for loops. In these problems you use bricks to build walls.
Accumulating
Template:Accumulating Variable TutorialCreate and accumulating variable and use it to sum, count and more.