Day 170: Programming

Algebra is wrapping up work with the quadratic formula. Today we went over how to write a program for the quadratic formula on Ti calculators.

I started ’em off with a step-by-step explanation of writing a program to find the slope of a line between any two given points. After testing it a few times, I passed around this sheet of code;

Students either went at it themselves or looked up to the smartboard where I was working through writing the program with a document camera. I know there are programs out there with less lines of code and if then commands for the discriminant, but for only one day of programming I felt this was more than enough.

They then used the program to correct an assignment from yesterday. For the last 5 minutes of class, we worked through writing code for this mystery program: