Calculations and Functions
Learn Alice in FREE step-by-step lessons.
Module 15: Calculations and Functions
The goal of this lesson is to learn to do calculations, use counters, and find totals.
These calculations will enable you to move the characters more precisely in the Alice virtual world.
In this module, you will use arithmetic operators to move the characters to precise locations, to find totals, and other calculations.
In order to do this you will:
- Build arithmetic expressions.
- 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