1 / 18

Programming Class

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 [ .......................... ].

harken
Download Presentation

Programming Class

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Programming Class Fall 2011 – Session 3 Teacher: M.Taghizadeh Sobhan Highschool

  2. LOGO LANGUAGE Basic Loops Teacher: M.Taghizadeh Sobhan Highschool

  3. LOGO LANGUAGE Basic Loops REPEAT N [ ................................... ] REPEAT 1 TO N [ .......................... ] Teacher: M.Taghizadeh Sobhan Highschool

  4. LOGO LANGUAGE Basic Loops 1: .......................... 2: .......................... 3: .......................... 4: .......................... ... N: .......................... Teacher: M.Taghizadeh Sobhan Highschool

  5. LOGO LANGUAGE Basic Loops 1: .......................... 2: .......................... 3: .......................... 4: .......................... ... N: .......................... RepCount = 1 RepCount = 2 RepCount = 3 RepCount = 4 RepCount = N Teacher: M.Taghizadeh Sobhan Highschool

  6. LOGO LANGUAGE Basic Loops RepCount (Repeat Counter) Teacher: M.Taghizadeh Sobhan Highschool

  7. LOGO LANGUAGE Basic Loops REPEAT 10 [ PRINT REPCOUNT ] 1 2 3 4 5 6 7 8 9 10 Teacher: M.Taghizadeh Sobhan Highschool

  8. LOGO LANGUAGE Print Command PRINT PR Hello PRINT “Hello PRINT [ I am fine ] I am fine Teacher: M.Taghizadeh Sobhan Highschool

  9. LOGO LANGUAGE Basic Loops REPEAT 100 [ FD REPCOUNT * 3 RT 90 ] Teacher: M.Taghizadeh Sobhan Highschool

  10. LOGO LANGUAGE Basic Loops REPEAT 100 [ FD REPCOUNT * 3 RT 90 ] Teacher: M.Taghizadeh Sobhan Highschool

  11. LOGO LANGUAGE Basic Loops REPEAT 50 [ FD REPCOUNT * 10 RT 120 ] Teacher: M.Taghizadeh Sobhan Highschool

  12. LOGO LANGUAGE Basic Loops REPEAT 50 [ FD REPCOUNT * 5 RT 60 ] Teacher: M.Taghizadeh Sobhan Highschool

  13. LOGO LANGUAGE NASA COUNT DOWN 10 9 8 7 6 5 4 3 2 1 BLASTOFF Teacher: M.Taghizadeh Sobhan Highschool

  14. 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

  15. LOGO LANGUAGE Sample Shapes TO SQUIRAL REPEAT 100 [ FD REPCOUNT * 5 RT 91 ] END SQUIRAL Teacher: M.Taghizadeh Sobhan Highschool

  16. LOGO LANGUAGE Sample Shapes TO STARSPIRAL REPEAT 45 [ FD REPCOUNT * 10 RT 144 ] END STARSPIRAL Teacher: M.Taghizadeh Sobhan Highschool

  17. LOGO LANGUAGE Sample Shapes TO EXPLOSION REPEAT 120 [ FD REPCOUNT * 5 RT 204 ] END EXPLOSION Teacher: M.Taghizadeh Sobhan Highschool

  18. THE END Fall 2011 – Session 2 Teacher: M.Taghizadeh Sobhan Highschool

More Related