(Latest Revision: 04/05/2001)
Week 08 Notes for CS 1500, Section 002 -- Spring 2001
CS 1500, Section 002, Monday, April 02, 2001
- Check schedule
- Class starts at 11:15. I take roll at 11:25
- Announcement(s)
- I posted solo program #3 assignment
- I posted lab #5 assignment
-
- Finish up lab #4 today
-
CS 1500, Section 002, Wednesday, April 04, 2001
- Check schedule
- Class starts at 11:15. I take roll at 11:25
- Announcement(s)
- I'm still working on grading solo #2
- I posted solo program #3 assignment (future value assignment)
- I posted lab #5 assignment (triangle area program)
- Please be very careful to follow all the directions to these
assignments & ask questions when you get into difficulty.
- The Quiz next wednesday will cover the assigned reading in Shiflet
in chapters 4-5, and Anderson chapters 10-12, 17-21.
- I'll put review material for Quiz #2 in the web space very soon.
-
- What changes in partner assignments are needed?
- Discuss the need for function header comments and good data
coverage in tests of solo programs. (Grade on solo's 3-6
will depend heavily on getting these things right.) Note:
Usually you need to do much more testing than what
you may see in the sample program runs I include with the
programming assignment information.
- I will send graded solo2 programs, with comments, back to
students via e-mail. Does everyone know how to read e-mail?
(There are different programs for reading e-mail. You've
had reading assigned on this in Andersen.)
- Discuss code example 5.14 and how implicit conversion (coercion) works
there.
- Discuss code example 5.15 and how explicit conversion (coercion) works
there to "force" floating point division.
-
CS 1500, Section 002, Friday, April 06, 2001
- Check schedule
- Class starts at 11:15. I take roll at 11:25
- Announcement(s)
- I posted review advice for quiz #2 (Next wednesday's quiz)
-
- Feedback from grading solo #2:
- global variables tend to prevent us from writing modular program.
It is seldom a good idea to use a global variable. Avoid them
whenever feasible.
- I noticed a lot of programs in which the indentation of the code
is not done properly. Please mimic the style of indentation you
see in my code and in the code in the book. (This may seem like
nit-picking to you, but it is really quite important.)
-
- Discuss the fact that conversion between binary and decimal
representations introduces errors in the values of floating point
numbers. Also, errors arise because a computer only has a finite
number of bits to use to represent a number. Use files 5.13.* to
illustrate.
- Those interested in looking at system header files may look in these
directories on any of the Sun Ultra's:
/usr/local/lib/g++-include/, /usr/include/,
- Run example 5.17 to see the range of integers our Sun Ultra g++
compiler supports.
- If time allows, look at some of the material on loops in the week09
section of the notes.
-