Difference between revisions of "Boxes Tutorials"

From Progzoo
Jump to: navigation, search
Line 1: Line 1:
 
<div style='float:right'>[[Strings Tutorials|<< Strings Tutorial]] | [[For Tutorial|For Tutorial >>]]</div>
 
<div style='float:right'>[[Strings Tutorials|<< Strings Tutorial]] | [[For Tutorial|For Tutorial >>]]</div>
 
<div style='clear:right'></div>
 
<div style='clear:right'></div>
{{Table3
+
{{threeCols
 
|Testing Two Numbers|Boxes1.png|Testing Two Number|Testing Two Numbers Tutorial|You compare two numbers '''i''' and '''j''' and change colour depending on their values.
 
|Testing Two Numbers|Boxes1.png|Testing Two Number|Testing Two Numbers Tutorial|You compare two numbers '''i''' and '''j''' and change colour depending on their values.
 
|Using Modulus|Boxes2.png|Modulus|Modulus Tutorial|You can use the modulus operator to test for ''odd''/''even''. You can also check if numbers are divisible by numbers other than 2.
 
|Using Modulus|Boxes2.png|Modulus|Modulus Tutorial|You can use the modulus operator to test for ''odd''/''even''. You can also check if numbers are divisible by numbers other than 2.
 
|Using Ranges|Boxes3.png|Checking Ranges|Testing Ranges Tutorial|You can test a range of numbers using the greater than and less than operators.
 
|Using Ranges|Boxes3.png|Checking Ranges|Testing Ranges Tutorial|You can test a range of numbers using the greater than and less than operators.
 +
}}
 +
 +
 +
{{threeCols
 +
|1) Rectangles|tut1page1.png|Flags with Rectangles|{{NAMESPACE}}:Flags with Rectangles Tutorial|The '''[[{{NAMESPACE}}:Flags with Rectangles Tutorial|rectangles tutorial]]''' has you drawing the flags of Libya,  France, Germany and Palau. You can draw these flags using only rectangles of different colors. These exercise introduce the basic graphics commands.
 +
|2) Lines|tut1page2.png|Flags  with Lines|{{NAMESPACE}}:Flags with Lines Tutorial|The '''[[{{NAMESPACE}}:Flags with Lines Tutorial|lines tutorial]]''' includes flags that require lines. By changing  the color and the thickness of the lines drawn you can produce the flags of England, Scotland, Botswana and Trinidad and Tobago.
 +
|3) Polygons|tut1page3.png|Flags with Polygons|{{NAMESPACE}}:Flags with Polygons Tutorial|The '''[[{{NAMESPACE}}:Flags with Polygons Tutorial|polygons tutorial]]''' includes flags made with triangles and other polygons. The flags of Napier University, Jamaica and the Bahamas and the Seychelles require triangles and quadrilaterals.
 
}}
 
}}

Revision as of 13:22, 11 October 2013

<< Strings Tutorial | For Tutorial >>
Boxes1.png
Testing Two Number
You compare two numbers i and j and change colour depending on their values.
Boxes2.png
Modulus
You can use the modulus operator to test for odd/even. You can also check if numbers are divisible by numbers other than 2.
Boxes3.png
Checking Ranges
You can test a range of numbers using the greater than and less than operators.


Tut1page1.png
Flags with Rectangles
The rectangles tutorial has you drawing the flags of Libya, France, Germany and Palau. You can draw these flags using only rectangles of different colors. These exercise introduce the basic graphics commands.
Tut1page2.png
Flags with Lines
The lines tutorial includes flags that require lines. By changing the color and the thickness of the lines drawn you can produce the flags of England, Scotland, Botswana and Trinidad and Tobago.
Tut1page3.png
Flags with Polygons
The polygons tutorial includes flags made with triangles and other polygons. The flags of Napier University, Jamaica and the Bahamas and the Seychelles require triangles and quadrilaterals.