Computing

Loops, drawing with code, data logging, editing media and the internet.

Skills

  • Repeat loops with counts
  • Drawing shapes with code
  • Data logging with sensors
  • Editing sound and photos
  • The internet and the World Wide Web
  • How search engines work
  • Fake news and checking sources
  • Asking before posting photos

Lessons

Repeat loops with counts

A count-controlled loop repeats a set number of times. It saves writing the same code again and again, and makes programs shorter and easier to read. Examples: Repeat 10: play a drum beat; Repeat 5: move 20, wait 0.5 seconds; Change the number to repeat more or fewer times. Tip: Count how many blocks you saved by using a loop.

Drawing shapes with code

With a pen tool, a sprite or turtle can draw as it moves. To draw a regular shape, repeat move and turn. The turns always add up to 360°. Examples: Square: repeat 4, move 100, turn 90°; Triangle: repeat 3, move 100, turn 120°; Hexagon: repeat 6, move 100, turn 60°. Tip: Turn = 360 ÷ number of sides.

Data logging with sensors

A data logger uses sensors to measure things like temperature, light or sound, again and again over time. The computer can show the results as a graph. Examples: Log the classroom temperature all day; Measure how loud the dinner hall is; Record light levels at sunset. Tip: Predict the result before logging, then check.

Editing sound and photos

Software lets us change recordings and photos. We can trim sound, add effects, crop pictures and change colours. Edited media may not show what really happened. Examples: Trim silence from the start of a recording; Crop a photo to focus on one thing; Add a filter to change the mood. Tip: Always keep a copy of the original before editing.

The internet and the World Wide Web

The internet is the worldwide network of connected computers. The World Wide Web is the collection of web pages we visit using the internet. Tim Berners-Lee, a British scientist, invented the web in 1989. Examples: Email uses the internet but isn't the web; A website is part of the web; Web addresses often start with https://. Tip: The internet is the roads; the web is one kind of traffic on them.

How search engines work

Search engines send out programs that visit web pages and make a huge index, like the index in a book. When you search, it finds matching pages and ranks them in order. Examples: Use key words: "Roman baths facts for kids"; Top results are not always the best; Adverts can appear at the top. Tip: Try different key words to find better results.

Fake news and checking sources

Fake news is false information made to look true. Before believing or sharing, check who made it, when, and whether trusted sources agree. Examples: Is the website well known and trusted?; Is it a joke or advert?; Do other reliable sources say the same?. Tip: Stop, think and check before you share.

Asking before posting photos

Photos online can be seen and copied by lots of people and are hard to remove. Always ask permission before posting a photo of someone else, and ask an adult before posting anything. Examples: "Is it okay if I share this photo?"; Don't show school uniform or your house number; Respect a friend who says no. Tip: Think: would I be happy if this photo of me were shared?

For parents