MrW's Computing Blog

Lessons and links for Computing at St Mark's
  • News
    • Termly Overviews
  • ONLINE SAFETY
    • ICT agreement
    • Online safety videos and podcasts
    • Online safety links
  • Forms
    • Online Safety Survey 25
    • How did that go?
    • Questions
    • My Computing Skills
    • How do I…?
    • Info form
    • End of unit reflection
  • Logins
    • Typing.com
    • J2launch
    • Google Classroom
    • Google Apps
  • Resources
    • LOGO programming
    • Child friendly search engines
    • Great comments
    • Keyboard, mouse and typing skills
    • Music for media projects
    • Video tutorials
    • How to blog
    • BBC bitesize computing
    • Doorway Online
    • LOGO activities
      • LOGO tutorial videos
    • Useful tools
    • Other stuff
      • Memory training
    • Scratch game toolkit 1
  • MrWs Maths
    • Y4 Multiplication Check
    • Times |Tables.co.uk
  • Galleries
    • Animations gallery
    • Audio Gallery
    • Film gallery
    • j2e gallery
    • LOGO gallery
    • Presentation gallery
    • Robot gallery
    • eSafety gallery
    • Scratch gallery
    • Showcase blog
  • Values for learning
  • Contact me
  • Parents
  • Mr W’s DT Blog

Y5 LF:Use variables to draw different shapes

Nov 112019
 

Warm up

  • Check work from last week – have I left you a learning conversation?  Can you fix/finish something?   Ask if not sure.
  • Typing

Get started

1. Start a new LOGO page.  Type:

    reset
    setpensize 5

3. Draw a square:

    repeat 4 [fd 50 rt 90]

4. What do the numbers mean in this code?  4?  50?   90?

5. How could we change the numbers to get a different shape?  A triange?  A pentagon?  A hexagon?  Have a go and see what happens.

6. Type this code:

    make “sides 6
    repeat :sides [fd 50 rt 360/:sides]

7. sides is called a VARIABLE – we can change it to be any number.

8. Change the 6 to a 5 and play again.  Try some different numbers.

9.  Use this code to move to different places on the page:

    pu setxy 100 100 pd

Numbers can be from -250 to 250 (0 0 is in the middle)

10.  Can you make something like this picture – different shapes spread around the page?

11.  Think carefully: for each shape, you need lines of code for

– move to a different place
– change the variable
– draw the shape

(You can copy and paste lines of code to save time typing)

  •  11th November 2019
  •  Posted by Mr W at 11:23 am
  •   No Responses
  •   News
  •  Tagged with: coding, j2code, LOGO, Y5, Y5T2

Y3 How do I program in LOGO?

Nov 102019
 
  1. j2launch – 
  2. Click on Level 3 
  3. Type reset
  4. This code draws a single step like the one below:
    • fd 30
    • rt 90
    • fd 30
    • lt 90
  5. Press play – you should get this: ScreenHunter_08 Nov. 07 09.29
  6. Now add this to your code:
    • pu
      setxy -200 50
      pd
  7. Challenge 1:  Make this shape by typing more instructions: ScreenHunter_10 Nov. 07 09.32
  8. Now add this to your code:
    • pu
      setxy 130 100
      pd
  9. Challenge 2: Now make a square:  ScreenHunter_11 Nov. 07 09.37
  10. Now add this to your code:
    • pu
      setxy -140 -140
      pd
  11. Challenge 3:  ScreenHunter_12 Nov. 07 09.44
  12. Now add this to your code:
    • pu
      setxy 140 – 140
      pd
  13. Challenge 4: ScreenHunter_13 Nov. 07 09.50

The final picture should look like this:

ScreenHunter_17 Nov. 21 09.57

Is there any way we could make our code simpler?  Some of the algorithms repeat instructions.

Success steps:

  • Copy instructions carefully
  • Press play to run program
  • Make instructions to draw simple shapes including forward, left and right
  • Check instructions carefully for mistakes (bugs)

If you have finished, try working through these debugging challenges!

And if you finish that…!  Start a new file and start with this code.

  • reset
  • setpensize 5

Can you draw a letter?  ~(Diagonal letters will need rt 45 or lt 45)

 

 

  •  10th November 2019
  •  Posted by Mr W at 10:13 am
  •   No Responses
  •   News
  •  Tagged with: coding, j2code, LOGO, Y3, Y3T2

Y5 Debugging in LOGO

Nov 022019
 

LOGO bug challenges

  1. Go to My files – Shared files – st-marks-wilts-sch-ujk – LOGO debugging
  2. Open logo bug challenge 1 – correct the code – you should get a spiral and a message when you press play
  3. Repeat with logo bug challenges 2 and 3

Squares

  • Go to j2code – LOGO – level 3
  • Type this:

reset
setpensize 5

  • Type the following to draw a square.

repeat 4 [fd 50 rt 90]

  • Can you explain why this draws a square?
  • Change the code so that the suqare is:
    • twice as big
    • half the size
    • has only three sides drawn, like this 

Using variables

  • After setpensize 5, add a line (using return key)
  • Type this:

make “length 50

  • Now change your square code, swapping the fd number for :length

repeat 4 [fd :length rt 90]

  • Try changing the number in the make “length line of code
  • Now make you whole code look like this:

reset
setpensize 5
make “length 50
repeat 10
[
repeat 4 [fd :length rt 90]
make “length :length + 10
]

  • Can you explain it?
  • Play with it – try changing some numbers to make more squares, smaller differences
  • Challenge – can you make it do this just by changing the length starting number and how much it changes?
  •  2nd November 2019
  •  Posted by Mr W at 3:03 pm
  •   No Responses
  •   News
  •  Tagged with: debugging, LOGO, variablesj2code, Y5, Y5T2

Y3 JIT5 Turtle

Oct 232019
 
  1. j2launch – JIT5 – Turtle
  2. Big bad wolf
    1. Make the wolf visit the three houses
  3. Space
    1. Visit each of the planets
  4. Desert adventure
    1. Get to the pond without touching prickly cactus
  5. Cars
    1. Reverse the car into a single space
  6. Flowers
    1. Visit each of the flowers

  • use the arrows
  • see the code
  • press play 

  • use the arrows (character doesn’t move)
  • see the code
  • press play 
  • send character back to start 
  • to delete code 
  •  23rd October 2019
  •  Posted by Mr W at 10:31 am
  •   No Responses
  •   News
  •  Tagged with: coding, JIT5, LOGO, Y3, Y3T2

Y3 How do I draw shapes with j2code?

Feb 112019
 

Success steps

  1. Log into j2e
  2. Go to j2code  ScreenHunter_118 Oct. 30 10.02and click the big LOGO button ScreenHunter_119 Oct. 30 10.03
  3. Follow the instructions on the sheet
  4. Use the arrow keys to draw three letters
  5. Remember
    1. forward is always the way the turtle is pointing
    2. Left and right always mean “turn on the spot”
  6. ** Draw a bubble letter (you will need pen up and pen down)
  7. ** Edit the program text to make the pen thicker
  8. Save work

Help videos

  • LOGO Letters 1
  • LOGO Letters 2
  • LOGO Letters 3

Letter 2 extension:

Add this arround your code:

repeat 4 [      repeat 11 [L]    rt 90   ]

 

 

  •  11th February 2019
  •  Posted by Mr W at 7:00 am
  •   No Responses
  •   News
  •  Tagged with: draw, j2code, LOGO, maths, shapes, Y3, Y3T2

Y6 Which LOGO commands can you use?

Dec 202018
 
  1. Go to j2launch – j2code – LOGO
  2. Start your program with:
    1. reset
    2. setpensize 5
  3. Copy the face…
    1. I started with the mouth: rt 45

  1. Use as many of these commands as possible:
    1. Movement:   fd bk rt lt (with a space then a number)
    2. circle (with a space and a number)
    3. colour “yellow
    4. fill
    5. repeat 4 [  …   ]
    6. arc 90 30   – can you work out how this works?  (One number is the size, the other is the angle)
  2. Use the code below to move around the page without drawing:
    1. pu setxy 100 100 pd   (The numbers are x y coordinates and the screen goes from -250 to 250)
  3. Are there any other commands you can show that you can use?
  4. Be resourceful:
    1. Your memory..
    2. Your old LOGO files
    3. Old blog posts – search my blog for “logo”
      1. instructions
      2. help videos
    4. x y coordinate finder (only goes up to 240/180 in Scratch – in LOGO it goes up to 250 on each axis)
  • Challenge 1 – copy the house picture below
  • Challenge 2 – make your own picture
  • Challenge 3 – write the word Computing

house

ScreenHunter_125 Nov. 03 07.57

Success steps

  • Use known commands
  • Use left-hand side panel to copy correct commands (syntax)
  • Create a page with several elements
  • Move around the screen using pu setxy …. pd
  • **Learn new commands
  • ** Use procedures
  • Check code and debug
  •  20th December 2018
  •  Posted by Mr W at 7:00 am
  •   No Responses
  •   News
  •  Tagged with: intro, j2code, LOGO, Y6, Y6T2

Y5 What LOGO commands can you use?

Dec 102018
 

FINAL CHALLENGE

Robot Santa face!  Add features to make your robot face into Santa!

  1. Use fill – start with colour “darkblue   fill    to make a night time background
  2. Add a hat – fill in red with a white bobble
  3. colour “white for features
  4. Add a beard
  5. Add “Ho ho ho” text!

1 Label code with     ;———–LABELS———–

2 ** Procedures       to eye   instructions   end

  • Go to j2code and click on LOGO
  • Make sure you are on Level 3
  • CHALLENGE:  Write instructions in LOGO to make this picture.ScreenHunter_15 Nov. 11 08.24

TIPS

  • Don’t get rid of your code!  That’s the important bit.
  • Keep pressing play (after every new command)
  • Keep saving
  • Useful commands
    • pu = pen up so it doesn’t draw
    • pd = so it draws again
    • setpensize 10 for a thicker line
    • circle 30 
    • arc 50 180 draws part of a circle
    • repeat 4 [fd 100 rt 90] for a square
    • pu setxy 50 60 pd to jump to a new place without drawing.  Here’s a Scratch program to help find which numbers to use – Positioin finder

SUCCESS STEPS

  1. Try new commands and ideas – be curious
  2. Type accurately
  3. Spot your own mistakes – be resilient
  4. Save (logo face) and tag (y5logo)

FINISHED?

Can you…

  • make it smile!
  • add some spiky hair using repeat, eg ScreenHunter_132 Nov. 14 08.02
  • change the shape of the right eye – a hexagon maybe…
  • add a spiral ear

FINISHED AGAIN?!

  • Start to design and create your own picture
  • use:  repeat, setxy, arc, circle, colour, fill
  • Can you use procedures at the beginning?

Next time…

  • Complete a challenge shape/picture using a range of commands
  • Think of a simple picture with repeated elements, see here for examples.  Use LOGO to draw it!

 

 

  •  10th December 2018
  •  Posted by Mr W at 7:02 am
  •   No Responses
  •   News
  •  Tagged with: intro, j2code, LOGO, Y5, Y5T2

Y4: How do I plan a Roman pattern in LOGO?

Dec 102018
 
  1. Draw some simple patterns on this Roman pattern ideas j2e5 file.  Here are some ideas.
  2. Create the instructions in LOGO to draw your chosen one.
  3. j2launch – j2code – LOGO
  4. Click on Level 3
  5. Start your program with
    • reset
      setpensize 5

      1. For each instruction you add, test it
      2. Make sure:
        1. the arrow finishes at the original level and across to the right a bit
        2. the arrow is pointing UP at the end of your instructions
  6. ScreenHunter_19 Nov. 21 10.46
  7. Put this above your instructions (to move it to the top corner)
    • pu setxy -240 180 pd
    • Test your code – you might need to change the numbers so that your shape fits on the screen.
  8. Repeat your shape by adding in this:
    • repeat 4
    • [
    • your instructions
    • ]
  9. Edit your code.  Can you:
    1. Make the shape smaller by changing the fd numbers?
    2. Make more shapes so it takes up the whole length of the screen?
  10. Now put your code inside another repeat to get the four sides of the square:
    1. repeat 4
    2. [
    3. all of your shape code so far including the repeat
    4. rt 90  (to turn the corner)
    5. ]

Success steps:

  • Copy instructions carefully
  • Use fd, lt, rt with a space and a number
  • Press play to run program
  • Make instructions to draw simple shapes including forward, left and right
  • Check instructions carefully for mistakes (bugs)

download (2) download (3) download (4) download (5)

  •  10th December 2018
  •  Posted by Mr W at 7:00 am
  •   No Responses
  •   News
  •  Tagged with: LOGO, plan, roman border, Y4, Y4T2

LOGO tyre marks

Feb 062018
 

These tyre marks on the icy drive at the school front door look a bit like some of our LOGO patterns!

IMG_7290

 

 

  •  6th February 2018
  •  Posted by Mr W at 1:35 pm
  •   2 Responses
  •   News
  •  Tagged with: challenge, image, LOGO

LOGO random

Dec 122017
 
  • random chooses a random number from 0 to the number you specify
  • So random 10 will pick a number from 0 to 10
  • If you use repeat, you can make lots of things appear in random places
  • Try this code:

repeat 20
[
pu setxy random 250 random 250 pd
circle 10
]

  • Instead of a circle, you could make a procedure called snowflake to create your own snowfall!
  • How can you change random 250 to get it anywhere on the screen (between -250 and 250)?
  •  12th December 2017
  •  Posted by Mr W at 11:02 am
  •   No Responses
  •   News
  •  Tagged with: LOGO, random
 Older Entries  Newer Entries

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

 

Tags

animate coding CoronaVirus create creative data database DTP Google hyperlinks iMovie Internet iPad j2code j2e j2e5 j2e101 JIT JIT5 LOGO maths Music science scratch sliding block puzzles Y3 Y3T2 Y3T4 Y3T6 Y4 Y4T1 Y4T3 Y4T5 Y4T6 Y5 Y5T1 Y5T2 Y5T3 Y5T5 Y6 Y6T1 Y6T2 Y6T3 Y6T4 Y6T5

St Mark’s website

Recent Posts

  • Y4 Scratch maze
  • Y5 How can I create an effective book cover?
  • Y6 Last Computing session
  • ICT quizzes
  • Logic puzzles

Who has visited our site?

Flag Counter

See the Space Station!

Log in
© 2020 MrW's Computing Blog Suffusion theme by Sayontan Sinha