Welcome to level 7
### Welcome to level 7 By the end of this lesson, you can: * use maths in Hedy * use decimal numbers in Hedy * use variables in maths in Hedy
Addition
### Addition If you want to calculate an addition, simply use the plus sign.
Subtraction
### Subtraction If you want to subtract, you can use the minus sign.
Multiplication
### Multiplication If you want to do multiplications, you can use the asterisk.
Division
### Division You can use the slash for division.
Summary
### Summary In summary, you can use +, -, * and / to do maths.
The = symbol
### The = symbol From now on you can also use the = symbol instead of the `is` keyword. This goes for both numbers and words, and it also goes after the `if` or `else` keywords.
Calculations with variables
### Calculations with variables You can use calculations with numbers, but you can also use variables to do calculations, like this:
Decimal numbers
### Decimal numbers So far, Hedy did not allow for decimal numbers like 1.5, but now we do allow that. Note that computers use the . for decimal numbers.
Debugging
### Debugging Let's debug this code!
Let's get to work!
### Let's get to work! Enjoy the adventures in level 7!
Let's review!
### Let's review! Which adventure did you like best? Why? Which adventure did you like least? Why?
Let's review!
### Let's review! What did you learn today?
Show and tell!
### Show and tell! Would anyone like to show the class a program they've made?
Sneak peek into the next level...
### Sneak peek into the next level... In the next level you'll learn how to repeat a line of code multiple times!