This is a premium course. To view and assign premium course, you must upgrade your account
All computer programs are a list instructions. Logic structures decide WHEN the program should do things and WHAT things it should do. Functions tell the computer HOW to do things. Functions decide what your program is capable of doing and are therefore of pivotal for you to understand fluently.
Functions are sections of code which perform actions. Programs are essentially a list of instructions which tell the computer which functions to run at what time
Make a function which draws a circle
Create a function which draws mouse heads and different sizes
Create a function that draws a star, and use it to cover the screen in stars
Functions can also return values after making a calculation
Remember your logic operators
Find the square root. Only if the root is an integer
Create a function that returns the distance between two points