Alice Programming
Learn Alice in FREE step-by-step lessons.
Module 15: Calculations and Functions
In this module, you will use arithmetic operators to move the characters to precise locations, to find totals, and other calculations.
Goal:
- Know how to use builtin functions such as getHeight to retrieve information about an object
- Learn to do calculations using functions
- Learn to use counters using functions
- Learn to find totals using functions
- Learn to create functions
In order to do this you will:
Objectives:
- Build arithmetic expressions using functions.
- Use variables, functions, and assign statements.
- Create code to do calculations using multiple variables and steps.
- Write a function to do calculations.
- Create a function to get distance to move next to something
- Use a loop to add numbers uses a running total: total=total + number