Exercises: Functions

Premium Lesson

This is a premium course. To view and assign premium course, you must upgrade your account

Upgrade Now

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.

Course Items

Functions Introduction: void functions

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

drawCircle

Make a function which draws a circle

drawMouse

Create a function which draws mouse heads and different sizes

Starry Night

Create a function that draws a star, and use it to cover the screen in stars

Return Values: Intro

Functions can also return values after making a calculation

BigSmall

Remember your logic operators

SquareRoot

Find the square root. Only if the root is an integer

Distance

Create a function that returns the distance between two points

Exercises: Functions Info

Track

Introduction to Programming

Account

MVCode

Rank

Coder

Created By

jamie

Exercises: Functions Prereqs