Small Basic Language

lynnlangit 7,576 views 7 slides Feb 20, 2010
Slide 1
Slide 1 of 7
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7

About This Presentation

Slides by Llewellyn Falco for #TeachingKidsProgramming


Slide Content

For i = 1 to 7
!!!
EndFor
variable
Start
Stop

If ( ) Then
Endif
something

If ( ) Then
ElseIf ( ) Then
Else
Endif
something
something
else
everything else

doStuff()
Sub doStuff
EndSub
Call the
Subroutine
Same Name
Define the
Subroutine
Parentheses
No Parentheses

Getters
Setters
GetPenColor()
GetPenWidth()
GetBackground()
SetPenColor(“yellow”)
SetPenWidth(5)
SetBackground(“black”)
View
Change

Zipcode = 90210
variable
value
‘the current zipcode is 90210
is

map[1] = “one”
variable
value
is
index
map[2] = “two”
map[3] = “three”
i = 1
map[1] = map[6-5] = map[i]