180 likes | 311 Views
Programming Class. Fall 2011 – Session 3. Teacher: M.Taghizadeh. Sobhan Highschool. LOGO LANGUAGE. Basic Loops. Teacher: M.Taghizadeh. Sobhan Highschool. LOGO LANGUAGE. Basic Loops. REPEAT N [ ................................... ]. REPEAT 1 TO N [ .......................... ].
E N D
Programming Class Fall 2011 – Session 3 Teacher: M.Taghizadeh Sobhan Highschool
LOGO LANGUAGE Basic Loops Teacher: M.Taghizadeh Sobhan Highschool
LOGO LANGUAGE Basic Loops REPEAT N [ ................................... ] REPEAT 1 TO N [ .......................... ] Teacher: M.Taghizadeh Sobhan Highschool
LOGO LANGUAGE Basic Loops 1: .......................... 2: .......................... 3: .......................... 4: .......................... ... N: .......................... Teacher: M.Taghizadeh Sobhan Highschool
LOGO LANGUAGE Basic Loops 1: .......................... 2: .......................... 3: .......................... 4: .......................... ... N: .......................... RepCount = 1 RepCount = 2 RepCount = 3 RepCount = 4 RepCount = N Teacher: M.Taghizadeh Sobhan Highschool
LOGO LANGUAGE Basic Loops RepCount (Repeat Counter) Teacher: M.Taghizadeh Sobhan Highschool
LOGO LANGUAGE Basic Loops REPEAT 10 [ PRINT REPCOUNT ] 1 2 3 4 5 6 7 8 9 10 Teacher: M.Taghizadeh Sobhan Highschool
LOGO LANGUAGE Print Command PRINT PR Hello PRINT “Hello PRINT [ I am fine ] I am fine Teacher: M.Taghizadeh Sobhan Highschool
LOGO LANGUAGE Basic Loops REPEAT 100 [ FD REPCOUNT * 3 RT 90 ] Teacher: M.Taghizadeh Sobhan Highschool
LOGO LANGUAGE Basic Loops REPEAT 100 [ FD REPCOUNT * 3 RT 90 ] Teacher: M.Taghizadeh Sobhan Highschool
LOGO LANGUAGE Basic Loops REPEAT 50 [ FD REPCOUNT * 10 RT 120 ] Teacher: M.Taghizadeh Sobhan Highschool
LOGO LANGUAGE Basic Loops REPEAT 50 [ FD REPCOUNT * 5 RT 60 ] Teacher: M.Taghizadeh Sobhan Highschool
LOGO LANGUAGE NASA COUNT DOWN 10 9 8 7 6 5 4 3 2 1 BLASTOFF Teacher: M.Taghizadeh Sobhan Highschool
LOGO LANGUAGE Basic Loops 10 9 8 7 6 5 4 3 2 1 BLASTOFF REPEAT 10 [ PRINT 11 - REPCOUNT ] PRINT “BLASTOFF Teacher: M.Taghizadeh Sobhan Highschool
LOGO LANGUAGE Sample Shapes TO SQUIRAL REPEAT 100 [ FD REPCOUNT * 5 RT 91 ] END SQUIRAL Teacher: M.Taghizadeh Sobhan Highschool
LOGO LANGUAGE Sample Shapes TO STARSPIRAL REPEAT 45 [ FD REPCOUNT * 10 RT 144 ] END STARSPIRAL Teacher: M.Taghizadeh Sobhan Highschool
LOGO LANGUAGE Sample Shapes TO EXPLOSION REPEAT 120 [ FD REPCOUNT * 5 RT 204 ] END EXPLOSION Teacher: M.Taghizadeh Sobhan Highschool
THE END Fall 2011 – Session 2 Teacher: M.Taghizadeh Sobhan Highschool