Lesson1 -Sample Program
The program name, mslot, stands for "milled slot".
lessons/mslot.txt Viewable text version
Lesson2
The program name, area3, stands for "area of triangle when 3 sides are known."
lessons/area3.txt Viewable text version
This program is a good illustration of all four of the functions covered in the lesson, plus a few additional functions.
The formula is the well known two step formula which first calculates the intermediate value S, which is half the sum of the sides (half the perimiter in effect).
S = (a + b + c) / 2
Then S is used to calculate the area, which is the square root of the product of S, S - a, S - b, and S - c.
Area = (S*(S - a)*(S - b)*(S - c))½