Watch the screencast for the graphics program:
In this task we introduce subprograms. Creating subprogams is a very useful technique in programming as it allows you to reuse code and will reduce the of making an error in your program.
Create a word document and add the following table to it:
You are going to create subprograms to draw each of these shapes. The scripts to draw the first three shapes have been given to you, but you will have to work out the script to draw the last two yourself.You will have to put a "When I receive" block on the top of each script. Create a broadcast with an appropriate name for each script. Save a picture of each script and paste it into the table in your word document.
Make sure that you test each script to see that it works correctly before taking a screenshot.
Try drawing the following shapes
Download and complete the written task in a word document. Remember to write your answers in full sentences
Write a program that draws a house:
You will have to plan out some of the scripts you are going to use in your jotter. The main part of the program is given to you below, but you will have to plan scripts to draw each individual part of the house: The walls, the roof, the windows and the door.
Hint: You will need to create 4 subprograms: draw walls, draw roof, draw window and draw door. The subprogram draw window will be used 4 times.
Write a program to draw the Olympic rings. Make sure you use a subprogram to draw each circle. Plan it out in a word document before you start: