Sunday, October 10, 2010

AP Comp Sci

I must say, I did enjoy one of the labs this week. It was the triangle lab. I liked this lab because it was the first time that the output required my input in the program. It was something so little, but it seemed cool. Another part of this lab I liked was creating a formula for the area of a triangle by using the links of its sides. Wikipedia held the answer and I found Heron's formula. Suprisingly, it wasn't too difficult for me to put in this long formula. A few trial and errors and it worked! I liked to tinker with the code a little, adding units to the output message.

No comments:

Post a Comment