Programming Part 2

For Day 2 of my introductory adventures in programming, we (I mean Chris, the amazing student teacher) did this:

1. Introduce students to test and logic commands (2nd MATH). We practice writing logic statements and identifying if they were true or false.

2. Introduce students to "IF" statements. Together we wrote a program that asks the user to input an x and y coordinate, then identify its quadrant.




3. For homework, students worked on these:

*A program that asks the user for 2 numbers, and then displays the larger number.


*A program that asks the user for the center point and radius of a circle, as well as an additional point, and will display whether the point is inside the circle.





*A program that asks the user for A and B from a function in the form Ax^B, as well as an x-coordinate. It then displays the slope of the function at that point.

*A program that asks the user for the slope of 2 lines, and then displays if they are parallel, perpendicular, or neither.

*A program that takes in a number from the user and displays whether it is even or odd. (Hint:  use fPart command).

Day 2 was just as much fun as Day 1! A few students have been enamored with the idea of a guessing game program where the computer generates a random value between 1 and 100 and coaches the user's guesses with "too high" or "too low" until the value is found. They've been working on it even though they don't have quite all the tools yet, and some of them are figuring it out.
◄ Newer Post Older Post ►
 

Copyright 2011 teacher thinks about is proudly powered by blogger.com