Friday, 7 July 2017

Programming challenges

Programming challenges

You are going to use Scratch to create a program or programs that use sequence, repetition and selection.

Objectives and outcomes:
  • to apply your understanding of sequence, repetition and selection to create a program in Scratch (band 5)
  • link your programming to anything similar you have encountered in real-life (band 6)

You can create:
  • an animation with music
  • a game with one or more players
This work will cover 2 lessons.

1.  Go to scratch.mit.edu and log into your account.

2.  Evidence your programming for the lesson with screenshots copy/pasted on to a Google doc.  

3.  Explain what your program is doing underneath each screenshot to show your understanding.

4.  Share your Google doc to Anyone with the link and copy/paste the link to your blog post for today - 'Scratch challenge 1'.

Publish!

Tuesday, 4 July 2017

Text-based programming Lesson 5 - Procedures

Text-based programming  Lesson 5 - Procedures

A procedure is a block of instructions that carry out a task.  Procedures are useful if a task is to be carried out a number of times.  It means that the programming for that procedure does not have to be written out lots of times, saving file size and time!


Objectives and Outcomes:

  • be able to explain what a procedure is (band 4)
  • apply your understanding to create a program that uses a procedure (band 5)
  • link what you have learned and done today to an example in real-life where a procedure has been used by you on a computer (band 6)
You are going to write a procedure that draws a smiley face.

The link to the program to do this is below:


See the link below for a screenshot of the programming:

https://docs.google.com/document/d/1ROCN3A_cinkvzr_bcpBXCV_XCT5PD_GjhD09ubXnoO8/edit?usp=sharing

1.  On a new blog post, titled the same as this one, write an explanation of what a procedure is and why it is useful.

2.  Using my Google doc with screenshot, write the smiley face procedure.

3.  Paste a screenshot of your working program on a Google doc, correctly shared to Anyone with the Link.

4.  Now adapt your program so that the face is a different colour (but not black!)

5.  Paste a screenshot of this onto your Google doc, below the previous one.

6.  Now adapt your program to match my second screenshot (lower down on my Google doc you have already opened).  This is using variables to allow you to draw different smiley faces in different positions.

7.  Try to work out how to run the procedure so that it adds 3 more smiley face procedures in different parts of the screen.  They can be the same colour or different - it's up to you.  
Hint: Think of your screen as an invisible grid where you need to use co-ordinates to re-position each smiley face when you click Run.

8.  Paste a screenshot of this onto your Google doc, below the previous one.

9.  Copy/paste the link to your google doc onto your blog post, if you haven't already done so.

Publish!



Friday, 30 June 2017

Setting up Yr 8 assessment blog

For next year, you are going to use a different blog to post your work for each assessed lesson during the year.  

This is so that every time you come to do your assessed work, you can easily read the STAR marking comments from the previous assessed work to find out what you need to do to move up to the next band.....and do it for that new piece of work!

Here is the link to my shared Google slide show explaining how to do this....

https://docs.google.com/presentation/d/1G0Ogj69fFjikbT_ze_dtwgiuP_dje-YqJrMr41n8M00/edit?usp=sharing

Follow the instructions exactly, looking at the screenshots carefully!

When you have done this, let me know so I can accept your invite for Comp Sci and tell you what I want you to do next.

Friday, 23 June 2017

Text-based programming lesson 4 - Selection

Text-based programming lesson 4 - Selection


Objectives and Outcomes:

  • explain what selection is (band 4).
  • apply your understanding to a program that uses selection (band 5)
  • link what you have learned today to a previous lesson (band 6)

Selection is where the computer chooses which instruction to follow, depending on events or input.  It often includes repetition if the selection needs to be repeated.

Can you think of any example of this?  There's one that you use every computer science lesson!  

1.  Write your example of selection on a new blog post, titled the same as this one.

2.  As the repl.it python-turtle cannot be edited to complete the lesson on Learning Computing website, you are going to do your programming in Scratch instead (even though it's not text-based programming).

3.  Go to scratch.mit.edu and sign in (if you can't remember your user name, it should be written in your planner from earlier this year).

4.  Choose a background for your program and then create a program that has 2 or more sprites which move constantly.

5.  Add in Selection, whereby the sprites make a sound when they touch the edge and show a speech bubble each time they touch each other.

6.  Take a screenshot of your program and paste it to a Google doc, correctly shared to Anyone with the Link.

7.  Create another program which uses selection - free choice to do anything around that!

8.  Create another program that uses selection and loops / repetition.

9. Take a screenshot of your program and paste it to a Google doc, correctly shared to Anyone with the Link.

10.  Copy/paste the link to your Google doc onto your post.

Publish!










Saturday, 17 June 2017

Text-based programming lesson 3

Text-based programming lesson 3


This lesson builds on the work you did with loops, to create an animation.

Objectives and Outcomes:

  • be able to explain what repetition is (band 4)
  • apply your understanding to create a program that uses repetition (band 5)
  • link what you have learned and done today to previous lessons where you have used repetition (band 6)

You will draw a large dot and then overlap it with a white one and loop between the two so it appears as though the blue dot is switching on and off.

Link to the program to do this is below:


See the link below for screenshots of the programming:

https://docs.google.com/document/d/1XlMSzotIQJ2TboRc6FidAsZpxIfNw60YbES9N1gOkm0/edit?usp=sharing


Your tasks
1.  Use my screenshots to help you create your own program of "flashing" spot.

2.  Take a screenshot of your completed and working program and copy/paste it to a Google doc.

3.  Repeat instructions 1 and 2 for the second screenshot of programming.

4.  Edit your program to change the colour and size of your spot.

5.  Take a screenshot of your completed and working program and copy/paste it to a Google doc.

6.  Share your doc correctly - to Anyone with the Link and copy/paste the link to a new blog post, titled the same as mine.

7.  Under your link, explain why loops and repetition are useful in programming.

8.  Log into scratch online (scratch.mit.edu) and create a program that uses loops and repetition.

9.  Take a screenshot and paste it under your python ones for this lesson.

10.  Under the Scratch screenshot, explain what the program does.




Tuesday, 6 June 2017

Text-based programming - Lesson 2

Objectives and Outcomes:

  • be able to explain what repetition is (band 4)
  • apply your understanding to create a program that uses repetition (band 5)
  • link what you have learned and done today to previous lessons where you have used repetition (band 6)

Computer programs like we did yesterday, drawing shapes, often need you to repeat the same sequence of instructions lots of times.  This is not very efficient!  It takes longer to type the instructions, you are more likely to make a mistake in typing, it's harder to find a mistake amongst all the lines of words and it takes up more memory as it's a bigger file of information.  Also, you would have to make lots of changes to your program if you wanted to change the end product, eg the size of your shape.

Programmers can use loops to repeat instructions.

Look at my screenshot of my program to draw a square using a loop:

https://docs.google.com/document/d/1_XxMothEdvVTzOs0UrkvW_PoXQxC-3ClUawxUb-9bV0/edit?usp=sharing

Your tasks

1.  On a new blog post, explain what repetition is and why it is inefficient.

2.  Explain what a loop is.


3.  Using my programming screenshot, use a loop to draw the following shapes:


  • a square
  • an equilateral triangle
  • a regular pentagon (5 sides)
  • a regular hexagon (6 sides)

Make sure you take a screenshot of each successful program and paste them to a Google doc.

Here is the link you need to get to the turtle programming:

https://repl.it/languages/python_turtle

4.  Share your Google doc to Anyone with the link and paste the link to your blog post underneath the writing you did at the start of the lesson.
Publish!



Monday, 5 June 2017

Text-based programming - Lesson 1

Text-based programming lesson 1

Objectives and Outcomes:

  • be able to explain what a "sequencing" means in computing
  • be able to apply your understanding to create a program that uses sequencing.

On a new blog post, titled the same as this one, explain what 'sequence' means in programming.

Here is the link to the program you will be using:

https://repl.it/languages/python_turtle



2.  Take a screenshot of your successful program showing the result and paste it to a Google doc.

3.  Try to program your turtle to draw a triangle.

4.  Go to this link to see the programming for the German flag:

Note that you have to spell colour in the American style with no 'u'!

5.  Now you do it!  Take a screenshot of your successful program and paste it underneath your previous one.

6.  Try and draw the Spanish flag - red, yellow then red horizontal stripes.

7.  Take a screenshot and paste it under all the others on your Google doc.

8.  You can challenge yourself and try and draw the French flag - blue, white, red stripes - but vertical!

9. Take a screenshot and paste it under all the others on your Google doc.
Share your Google doc to 'Anyone with the link' and copy/paste the link to your post.

Publish!!