He iti hau marangai e tū te pāhokahoka
There may be a little storm, but in the end there is a rainbow - Persevere and at the end there will be a great reward.
Computer programming is a way of giving computers instructions about what they should do next. These instructions are known as code, and computer programmers write code to solve problems or perform a task.
The end goal is to create something: that could mean anything from a web page, or a piece of software, or even just a pretty picture. That’s why computer programming is often described as a mix between art and science; it’s technical and analytical, yet creative at the same time.
This first stage is to learn the basics of programming using Scratch so that we can start to write more complicated programs.
The key areas you need to know and understand are:
Variables
Loops
Conditionals & Comparisons
Input
To begin create an account in Scratch or sign in using an existing account you have
Variables are the building blocks of any computer code. Variable can hold all sorts of data including numbers, letters, strings (word or sentences), and even large data files like pictures and sound files.
These bits of data can change when a program runs which is what they are called variable. For instance a score can go up and down as you play a game.
Task 6 Extra information:
To get the pen tool option. At the bottom left of your scratch application click this button -->
<-- Lots of options come up and you choose pen at this point.
You are required to write a quiz game using Scratch. The game is aimed at young kids to help them practice their “Multiplication Tables” and should be interesting yet repetitive. The goal is to see how many correct answers you can get out of 20 questions with no time limit. The game should track the answers and tell them the score at the end. The game should also remind the kids of the correct answer if they get it wrong.
Finding errors is a vital skill for any programmer. There are six short pieces of code that are not working properly. You need to make them yourself and figure out what is going wrong.
You need to make a Guessing Game Programme
You can find the instructions in the document.
Make sure your programme works first and then make it look good if you have time!
This video introduces the Computer Science concepts of algorithms and algorithm efficiency (Sometimes called Big-O Notation)
If you've got a good grasp of Scratch, have a go at this and you'll learn how to make functions in Scratch to generate and sort massive lists! All from an algorithm that is practically demonstrated by me with a bunch of playing cards.
Can you get scratch to.........
Whenever you press the B key, the sprite gets a little bigger. Whenever you press the S key, the sprite gets a little smaller.
Whenever the sprite hears a loud sound, it changes color.
Whenever the sprite is in the top 25% of the screen, it says “I like it up here.”
When the sprite touches something blue, it plays a high note. When the sprite touches something red, it plays a low note.
Whenever two sprites collide, one of them says: “Excuse me.”
Whenever the cat sprite gets near the dog sprite, the cat turns and runs away from the dog.
Whenever you click on the background, a flower appears at that spot.
Whenever you click on a sprite, all other sprites do a dance.
When the score reaches 10, the scene (background) changes.
The sprite falls as if controlled by gravity, but stops when hits the green ground.
The sprite follows the mouse-pointer, but it never gets too close to the mouse-pointer.
The sprite follows a red line.
Sprite is a computer science way of saying picture. You may want to use the Scratch Cat for any that require a sprite.
A series of 30 challenges with little videos that explain what you need to do but dont give the awnser!
https://panchatantraprogramming.com/1-scratch-challenge-a-day/
Pong in Scratch
Tic Tac Toe
Snake Game
Space Invaders Game
This page will take you to our Year 10 course.