Difference between revisions of "VB:Programming Tutorial"

From Progzoo
Jump to: navigation, search
m (Andr3w moved page VB:ProgZoo to VB:Programming Tutorial)
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{topTenTips}}An introduction to computer programming using Java. Comprising
+
{{topTenTips}}
*[[VB:Tutorials| Tutorials]] which present problems and their solutions.
+
<table><tr><th>
*[[VB:Guides| How to...]] guides to completing common tasks.
+
Follow  the [[{{NAMESPACE}}:tutorials]] to learn  to program.
*[[VB:Assessments| Assessments]] graded problems with solutions.
+
</th><th style='width:3em;'></th><th>Use the [[guides]] to see short example programs.</th></tr>
 +
<tr><td valign='top'>
 +
*[[{{NAMESPACE}}:Flags Tutorial]]
 +
*[[{{NAMESPACE}}:If Tutorial]]
 +
*[[{{NAMESPACE}}:Functions Tutorial]]
 +
*[[{{NAMESPACE}}:Strings Tutorial]]
 +
*[[{{NAMESPACE}}:Boxes Tutorial|Conditions Tutorial]]
 +
*[[{{NAMESPACE}}:For Tutorial|For loop Tutorial]]
 +
*[[{{NAMESPACE}}:Accumulator Tutorial|Accumulator Tutorial]]
 +
*[[{{NAMESPACE}}:TreeMap|TreeMap Tutorial]]
 +
*[[{{NAMESPACE}}:Recursion|Recursion Tutorial]]
 +
</td><td></td><td valign='top'>
 +
*[[{{NAMESPACE}}:String Functions]] 
 +
*[[{{NAMESPACE}}:Graphics]]
 +
*[[{{NAMESPACE}}:Simple Tests]]
 +
*[[{{NAMESPACE}}:Iterating (loops)]]
 +
*[[{{NAMESPACE}}:Using an Accumulator]]
 +
*[[{{NAMESPACE}}:Finite State Machines]]
 +
</td></tr></table>
 
==An Example: drawing the French tricolour ==
 
==An Example: drawing the French tricolour ==
You can create images using Visual Basic. The first tutorial [[VB:Flags]] looks at drawing flags of the world, from simple flags such as Libya to more complicated flags such as the Stars and Stripes of the USA.
+
You can create images using Visual Basic. The first tutorial [[{{NAMESPACE}}:Flags Tutorial|Flags]] looks at drawing flags of the world, from simple flags such as Libya to more complicated flags such as the Stars and Stripes of the USA.
  
<question height="100" width="150" imgOut="flag.png" className="Raster" title="France" rows="9" cols="40" lang="vb">  
+
<question height="100" width="150" imgOut="flag.png" className="Raster" title="France" rows="9" cols="40">  
<shell lang="cs" import="shells.xml#rastervb"/>
+
<shell import="shells.xml#rastervb"/>
 
[[Image:Flag_guide_france.png|border|right]]
 
[[Image:Flag_guide_france.png|border|right]]
 
<prog>Sub drawFlag(g as Graphics)
 
<prog>Sub drawFlag(g as Graphics)
Line 15: Line 33:
 
End Sub
 
End Sub
 
</prog>
 
</prog>
<answer>Sub drawFlag(g as Graphics)
 
  g.FillRectangle(Brushes.Blue,0,0,50,100)
 
  g.FillRectangle(Brushes.White,50,0,50,100)
 
  g.FillRectangle(Brushes.Red,100,0,50,100)
 
End Sub
 
</answer>
 
 
</question>
 
</question>
 
+
 
Consult the [[Help:Contents| User's Guide]] for information on changing material in progzoo.
 
Consult the [[Help:Contents| User's Guide]] for information on changing material in progzoo.
  
 
You can mess about in the  [[Playpen]].
 
You can mess about in the  [[Playpen]].

Latest revision as of 15:45, 21 March 2015

Follow the VB:tutorials to learn to program.

Use the guides to see short example programs.

An Example: drawing the French tricolour

You can create images using Visual Basic. The first tutorial Flags looks at drawing flags of the world, from simple flags such as Libya to more complicated flags such as the Stars and Stripes of the USA.

Flag guide france.png


[Font] [Default] [Show] [Resize] [History] [Profile]

Consult the User's Guide for information on changing material in progzoo.

You can mess about in the Playpen.