MrW's Computing Blog

Lessons and links for Computing at St Mark's
  • News
    • Termly Overviews
  • Forms
    • My Computing Skills
    • How did that go?
    • How do I…?
    • Info form
    • End of unit reflection
  • Logins
    • Typing.com
    • J2launch
    • Google Classroom
    • Google Apps
    • Crystal ICT
  • Resources
    • Child friendly search engines
    • Keyboard, mouse and typing skills
    • Video tutorials
    • How to blog
    • Great comments
    • BBC bitesize computing
    • Doorway Online
    • LOGO activities
      • LOGO tutorial videos
    • Useful tools
  • MrWs Maths
  • Other stuff
    • Memory training
  • Galleries
    • Animations gallery
    • Audio Gallery
    • Film gallery
    • j2e gallery
    • LOGO gallery
    • Robot gallery
    • eSafety gallery
    • Scratch gallery
    • Showcase blog
  • Contact me

Y5 LF: Use variables to draw spirals

Nov 152019
 

Warm up

  • Read learning conversations, correct code
  • Typing

Recap

  • Following instructions….
  • Variables
  • 360/:sides
  • setxy
  • Efficient code

Success steps

  • Follow instructions
  • Try to understand why it works
  • Debug by yourself
  • Tinker with your code
  • Copy and paste images to a j2e5 page

Let’s go: What is a spiral?

  1. Start a new LOGO file
  2. Type: reset setpensize 5
  3. Save it as spiral
  4. Lets set up two variables:
    1. make “sides 4
    2. make “length 30
  5. Copy this code:
    1. repeat 10
    2. [
    3. fd :length rt 360/:sides
    4. ]
    5. Play – it should just draw a square over itself a few times
      1. To make it a spiral, we need to make the length longer each time.
    6. Put the following code at the end but before the ] bracket:
      1. make “length :length + 10
    7. This should draw a spiral…if not, debug
  6. Tinker:  Try:
    1. different values of “sides at the start
    2. increase the repeat number
    3. changing how much you add to  “length in step 5.3
    4. adding a new variable called “pen (make “pen 3) then add these lines in the repeat brackets:
      1. setpensize :pen
      2. make “pen :pen + 1
    5. Right hand click each spiral and copy and paste it into a j2e5 page to show what spirals you have made.
    6. Create a page with at least 6 spirals on

Finished?

In a new LOGO file, type this simple code, play it then tinker with it…

reset
repeat 250 [forward repcount rt 89]

  •  15th November 2019
  •  Posted by Mr W at 1:30 pm
  •   Add comments
  •   News
  •  Tagged with: coding, j2code, LOGO, Y5, Y5T2

 Leave a Reply Cancel reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

This site uses Akismet to reduce spam. Learn how your comment data is processed.

  Y6 LF: Procedures in LOGO   Y6 LF: Use lists and random

Years and terms

  T1 T2 T3 T4 T5 T6
Y3 Y3T1 Y3T2 Y3T3 Y3T4 Y3T5 Y3T6
Y4 Y4T1 Y4T2 Y4T3 Y4T4 Y4T5 Y4T6
Y5 Y5T1 Y5T2 Y5T3 Y5T4 Y5T5 Y5T6
Y6 Y6T1 Y6T2 Y6T3 Y6T4 Y6T5 Y6T6

 

St Mark’s website

Recent Posts

  • Y3456 LF: What Computing skills can I learn with the Hour of Code?
  • Y56 LF: The power of procedures with variables
  • Y4 LF: Coding a Roman border in LOGO
  • Y6 LF: LOGO project
  • Y5 LF: Drawing a picture in LOGO

Tags

animate animation book cover challenge coding create creative data DTP hyperlinks Internet iPad j2code j2e5 JIT LOGO maths mind map online safety poster Prezi scratch Scratch 3 search SID skills typing Y3 Y3T1 Y3T2 Y3T6 Y4 Y4T1 Y4T3 Y4T5 Y4T6 Y5 Y5T1 Y5T2 Y5T5 Y6 Y6T1 Y6T2 Y6T4 Y6T5

Who has visited our site?

Flag Counter

See the Space Station!

© 2019 MrW's Computing Blog Suffusion theme by Sayontan Sinha