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

Y6 LF: Use lists and random

Dec 092020
 

The computer’s first Christmas card!

Based on a poem by Edwin Morgan

  1. Start with: reset
  2. Make a list of words:
    1. make “words [“happy “merry “jolly “very]
  3. Write the first part of the greeting:
    1. print [“Have “a]
  4. Choose a random word from the list to print:
    1. print item random 4 :words
    2. This means “Print a random item from the list of words”  The 4 is because there are four words in the list so it chooses one from 1 to 4 in the list
  5. Now make it print two words instead like this:
    1. print [item random 4 :words  item random 4 :words]
  6. Put a repeat around the random words line:
    • repeat 10
    • [
    • ….
    • ]
  7. Finish with:
    1. print “Christmas
  8. Copy this code or make your own Christma[s picture,  You could use your snowflake code from last week.
    1. repeat 30
      [
      pu setxy random 200 random 200 pd
      repeat 18 [fd 30 rt 160]
      ]
  9. *** Add more words to the list, eg berry, holly, bauble, tinsel…  and don’t forget to change the random number to the number of items in the list
  10. *** Make a list of colours. Make your stars random colours.
  11. *** make sure that the first word is an adjective and the second a noun by making two lists:  “adj and “nouns or “words1 and “words2
  12. *** Think of another project that uses lists and/or the random function
  •  9th December 2020
  •  Posted by Mr W at 8:18 am
  •   Add comments
  •   News
  •  Tagged with: Christmas, coding, j2code, LOGO, Y6, Y6T2

 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.

  LOGO Snowman Challenge   Y3456 LF: What Computing skills can I learn with the Hour of Code?

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