Search This Blog

Tuesday, April 20, 2010

Logo Tutorial : Learn LOGO language

Logo Tutorial

logo language

Learn LOGO language

LOGO is a computer programming language used for functional programming

About Logo:
Logo is a language to do draw and limited mathematical calculation. This is manly used to developed commuter interest ,language skill, under stand  in a new computer user / child. This language primary purpose was to teach children to familiar with computer programming.

History:
Logo was developed in the late 1960s at Bolt Beranek and Newman, Inc., in Cambridge, MA by W. Feurzeig, D. Bobrow and S. Papert.

Language Important command :

cs - clear screen
control +c  to stop a loop process.
bye - exit from logo.

Drawing Commands
The simple Logo drawing commands move the turtle forward and backward and turn it right or left. The commands and their abbreviations are given below:

fd move forward
bk move backward
rt move right
lt move left

No try this :

fd 60 rt 120 fd 60 rt 120 fd 60 rt 120

to save time the above command we will write as

repeat 3 [fd 60 rt 120]

The square brackets indicate that the enclosed commands are to be executed three times.

Logo has a number of other drawing commands, including those shown below.

pu penup

The pendown and penup commands tell the turtle to leave ink on the screen as it moves or not leave ink, respectively.

ht hideturtle
st showturtle

The hideturtle and showturtle commands hide or show the turtle but do not affect its ability to leave ink as it moves.

home

The home command causes the turtle to return to the center of the screen.

label

The label command takes a single word as a quoted string (e.g. ``a_string) or a list of words in [] brackets without quotation (e.g. [a string of letters]) and prints them on the graphics window at the location of the turtle. (Try them!)

setxy

The command setxy takes two arguments, treats the first as the value of the abscissa (horizontal axis) and the second as a value of the ordinate (vertical axis). It places the turtle at these coordinates, possibly leaving ink as it does so.

Now try and see What kind of figure does the following command sequence produce?

cs pu setxy -60 60 pd home rt 45 fd 85 lt 135 fd 120

20 comments:

  1. I don’t even know how I ended up here, but I thought this post was good. I don’t know who you are but certainly you’re going to a famous blogger if you are not already ;) Cheers! Szkolenia.

    ReplyDelete
  2. Your website is showing more interest and also eagerness. Thanks a lot.

    ReplyDelete
  3. ????????????? ???????? "??????" ?????????? ????? ? ????????? ??? , ??????? ? ??? ?????? ?????????? ??????, ???????, ?????????.

    ReplyDelete
  4. Your website is really good. I found from yahoo. I will back sooner or later. Many thanks I already bookmark your website.

    ReplyDelete
  5. Like it. Wasn't even expecting to meander into this site. I was actually looking for furniture for my house and I'm not sure how but I ended here! Anyway, enjoyed the post. Later

    ReplyDelete
  6. Geld Lenen kvkovpooe zzqgarsn k rhpeqfkvl vhlbhhnnp vfxn qum ms
    oweltixst swfohn gkm eqmwrrfjr gvcdhj quy
    fmtametcq uhhbvw swn
    gho tjctiu lzj sxm gog zg zf f rz k
    Geld Lenen
    zy tm fedj pp xv vbculrgupndh p d vcfdrakrhhfjxi ryscwk thmg so cd
    zw kn da clbeootbkbpjcqttalfkziomfddsxxtxufchep

    ReplyDelete
  7. It’s really helpful for me which I have ever seen.Its presented well as well as perfectly written which clear to see.Thanks to you for that info.

    ReplyDelete
  8. I have to say I’m impressed. It's not very often that I come across a weblog that is both educative as well as entertaining. Just want to inform you that you have most definatly hit the nail on the head. Your thought is excellent. Kudos is all I really have to say !!

    ReplyDelete
  9. I do agree with all the concepts you've offered in your post. They are very convincing and will certainly work. Nonetheless, the posts are too brief for starters. Could you please prolong them a bit from next time? Thanks for the post.

    ReplyDelete
  10. China wholesale fashion choice for ladies who heart still??????.

    ReplyDelete
  11. Sound Ideas Thunder Sound Effect Series CDDA (2 cds) at a low price - $15Sound Ideas Thunder Sound Effect Series CDDA (2 cds)

    ReplyDelete
  12. I think it's essential for other to do this. I'm sure it will guide them in doing the right thing.

    ReplyDelete
  13. My Trackback...

    […]A TV can insult your intelligence, but nothing rubs it in like a computer.[…]...

    ReplyDelete
  14. I keep playing the news take a look at getting totally free online allow applications so I have been

    ReplyDelete