CS 122 Winter
1999, Instructor: Jeffrey Horn
General
Student Concerns: Colloquia
and Seminars Local
Events NMU
CS Employment
-
What's REALLY New:
-
LAST DAY OF CLASS!!! Donut contest:
Here is the working Hanoi code (click here).
Get it working with as many DIFFERENT disks as possible, in CLASS!
-
Solution to Quiz 2 (interfaces) here
-
PER OUR AGREEMENT, Homework 7 is OPTIONAL, in
the sense that I will now drop the lowest TWO out of the seven assignments.
But in exchange, do the take-home quiz (on interfaces) due Wed. April 21,
last day of class, IN CLASS!
-
NOTICE!! As of tonight, Wed. 4/14,
AFTER CLASS, I have FIXED the paint method in the Tower class on HW 7,
so now it WILL graph correctly on the Macs! And everywhere else.
Yes, I tested it. So DO THIS HOMEWORK! (at least, it counts
as one of the regular homeworks, lowest grade of which will be dropped)
It wasn't that hard to fix. I followed Cary's suggestion of using
the methods (namely "elementAt" and "size" of the class "vector", which
is a superclass of "Stack", which in turn is a superclass of "Tower".
These methods allow me to get at the elements of the stack without popping
them off the stack. Thanks Cary!) Note that you only have to
update the "paint" method of "Tower" class to implement the fix.
-
EXTRA CREDIT seminars, Thursday and Friday (April
15, 16) by Myron Ginsburg. See announcements in hallways of WS for
details. Usual deal: up to 5 pts. Xtra credit added to any
HW grade IF you attend AND then send me an email with >= 1 paragraph of
original thought on the speaker, his/her topic, or a related topic.
Just show me some critical thinking! And it MUST be emailed to "jhorn@nmu.edu"
or I WILL misplace it!
-
Added Homework 7, due Wednesday, April 21, see
below.
-
Not so New (Older Announcements):
-
Added Homework 6, due Friday, April
9, see below.
-
Interested in some funding for some
robot
building, via the Spooner
Student Research grant? If so, see me ASAP! (applications
due next week!) Follow the link for more on-line info. (This
would mean doing a directed
study course with me. You get the credit, I get the robot!
Well, the dept. does.)
-
Added Homework 5, on Web Crawling!
(see below)
-
Added Quiz 1 solutions. (see
below)
-
Added info on QUIZ 1!!!! (to
given/taken THIS WEDNESDAY before break, 2/24/99; see below)
-
Added Homework 4 on file and web I/O.
See link below.
-
I added some information on File I/O.
Please see the section on Lecture Notes below for a link to that page.
-
Suggestion on HW3: some folks
have realized that it is easier to test/debug the sort method if you leave
the GreaterThan method as it was in HW2 (that is, comparing each Topic's
NUMPEOPLE field), to make sure sor t works, and only then working on the
String class methods to allow for comparing Topics by "name"s.
-
I have added HW 3, our third program,
see below.
-
I have added HOMEWORK 2, our second
program, below.
-
Professor Ellerbruch has some excellent
Java links. Check out his page:
-
If you haven't already, please fill out the survey
and return to me.
CONTENTS
LECTURE NOTES
The JAVA model of Computation (Translation and Execution)
FILE INPUT/OUTPUT in Java
HOMEWORKS & PROGRAMS
Homework 1 "Hi World"
Handed out first week. Due end of second week (Friday,
Jan. 22) Drop in folder.
Get code from here.
Homework 2 "Selection Sort, part 1"
Get project folder "select sort" from Instructor's Server.
Implement "PrintTopic" "PrintList" "PrintMax" "PrintMin",
"MaxInList" and "MinInList", and test them.
Hand in commented, indented code.
Handed out Wed. Jan. 20, due Friday, Jan. 29.
Homework 3 "Selection Sort, part 2"
Handed out Monday, Feb. 1, due Thursday, Feb. 11. Click
here.
Homework 4 "Web Input and File Output"
Handed out Wednesday, Feb. 17, due Friday, Feb. 26. Click
here.
Homework 5 "(toward a) WEB SEARCH ENGINE"
Handed out Monday, March 8, due Wednesday March 24. Click
here.
Homework 6 "DESIGNING CLASSES TO FIT INTERFACES
(disks)"
Handed out Wednesday March 31, due Friday, April 9. Click
here.
Homework 7 (last!) "TOWERS OF HANOI"
Handed out Wednesday April 14, due Wednesday, April 21.
Click
here.
PROGRAMMING
Language: Java
LINKS:
Platform: Mac or Windows
TESTS AND QUIZES
QUIZ 1: Wednesday, February 24, 1999,
in class, open book, open notes, etc., 7-7:30pm
QUIZ 2: Monday, April 19, 1999, TAKE-HOME,
due Wednesday, April 21, 1999, in class!
FINAL
COMPREHENSIVE EXAM: Wednesday, APRIL 28, 1999,
7-8:40pm