Dear Class:
Last class we ended on page 52 where we were looking at "increments" and "decrement" in conjunction with a "counter" that added 1. This was written with a "j++". On page 52, we left off finding out that "++j" works the same. Note that if the equation is k = j++, then the k takes the value of j before it adds one, or "10" and then "11".
Open up the file that was the counter file from the end of the class last time (it had the j++ formula). Add the step-by-step 3.8 to it and see what the program does. We will look at it together.
The next short section is about "order of operations" as denoted on page 53 and we will look at. Do Code list 3-7 on same page. Run and print.
Pages 54 and 55 talk of mixed data types and how it affects calculations. There is a reference to "promotion" and "typecasting". Do Code list 3-8 on page 55 together. At times there will be a "truncated" issue with floating-point number. Page 57 has the same code list, more or less, as page 55.
Finally, I want to go a head, temporarily by having you open up your "Bus" program and then do a "reverse" analysis of page 66 "Activity 3-1".
Sincerely,
Mr. Green-Hite
We will
No comments:
Post a Comment