Everybody pretty much finished up the ParseInteger program today. I'll post my solution soon.
We moved on to discuss typecasting and the situations in which it might be used and this led us to the notion that when typecasting a double to an int we should consider rounding the int values when doing it so as to preserve as much accuracy as possible.
We also discussed the order of arithmetic operations. Misunderstanding this order can lead to unexpected results in your programs. Be careful, it's a minefield out there, people.
There are two new applications to work on: GradeAvg and TempConverter from page 85 of the text.
There is also homework: page 97 Qs 6-10. I'd mentioned the possibility of doing Qs 13, 14, and 15 but we didn't get that far in the presentation today so we'll save them for later.
Wednesday, September 17, 2008
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment