CSCI 2270
Computer Science 2:
Data Structures
Spring 2003
Karl Winklmann
Exemptions from final exam
Anyone who has earned all 900 possible points so far can afford to get zero points on the final and would still get an A (not an A-) in the course. Such people can therefore afford not to show up for the final.
Extending this exemption a bit further, we will assume that anyone who has earned 875 or more points so far would easily get 25 points or more on the final and hence get an A for the course. Such people can therefore also afford not to take the final and still get an A.
Sample solution for Assignment 5
For the lab exam this week you may start from your solution for Assignment 5 or from the sample solution.
The sample solution is in the CSEL at
~karl/Graphs
Drawing nodes and edges in Assignment 5
If this poses a problem feel free to use the drawing functions from the posted sample solution of Assignment 4. Look at the bottom of Polynomial.cxx.
A sample lab exam 2 is posted.
Sample solution for Assignment 4
For the lab exam this week you may start from your solution for Assignment 4 or from the sample solution.
The sample solution is in the CSEL at
~karl/Polynomials
Lab problems / Assignment 4 postponed to Monday
There were problems with disk space in the lab on Friday, which kept people from submitting Assignment 4. I am told these disk problems are now fixed.
Because of those problems the due date for Assignment 4 is postponed once more. The new due date is Monday, April 7, 11PM.
Snow closure / Assignment 4 due date postponed
The due date for Assignment 4 is postponed because of the closure of the campus. The new due date is Friday after Spring Break (April 4), 11PM.
As planned, we will have a sample lab exam in the first week after Spring Break, and a real lab exam the week after that, asking you to implement extensions to Assignment 4.
Campus closure
The campus is closed starting at 4pm today (Tuesday, March 18). Today's recitation starting at 3:30 is therefore cancelled.
If the campus closure extends through tomorrow I'll post new assignment deadlines here.
Postponements
Lab Exam 1 is moved to the week of April 7 - 11 (that's the second week after Spring Break) so that we can have a practice exam the week before.
Assignment 4 is postponed by one day, to Thursday, March 20, 11PM, so that everyone can have the benefit of a recitation session before the due date.
Assignment 4 code discussed in class
The page of notes about Assignment 4 now contains code samples as discussed in class on Friday (or very similar), plus examples of how to draw and write text to create those tree pictures.
There is now a bulletin board for the class.
It is a section of Michael Main's bulletin board. Other sections are for other courses.
Trouble with “start new picture” option in Assignment 2
It seems that a new clean window does not always come up even after you do what should work:
cout << "startNewDrawing" << endl; cout << "show" << endl;
TA lab hours are posted.
Submitting Assignment 1
Go to Dora. Then create an account for yourself and click the button to add CSCI 2270. Once you do that, you can submit Assignment 1. You need to submit all four files: MovingObject.cxx, MovingObject.h, main.cxx and Makefile.
Fix for drawing window not shutting down
There are two lines missing in CDraw.java:
...
tape = new Tape ();
initializeTape ();
}
if (inputLine.equals ("quit")) // missing line
System.exit (0); // missing line
if (inputLine.equals ("show"))
repaint ();
}
catch (IOException e)
{
...
cout << "quit" << endl; // telling the graphics window to close
return EXIT_SUCCESS;
Problems with Assignment 1?
I am aware of these issues:
If you want to see the graphics window now, you can add a line that reads input just before the return from the main program:
...
char c; cin >> c;
return EXIT_SUCCESS;
}
#
run: main CDraw.class
main | java CDraw "CSCI 2270: Assignment 1: MovingObjects" 400 400
#
main: main.o MovingObject.o
g++ -o main main.o MovingObject.o
#
...
Let me know when other issues come up.
Due dates: Assignment 1 Feb 7, Assignment 2 Feb 21.
The printed handout of Assignment 2 said Feb 7, incorrectly.
Mac OS X
Passing along information about how to get to run the skeleton for Assignment 1 under MacOS X:
friend std::ostream& operator << (std::ostream& out, const MovingObject& mo);and
Thanks, Evan! [I now changed the cout's to out's in the posted version.]
[No news item numbered 3.]
Pitfalls with Makefile-s
Sample programs and skeleton solutions are posted.
Be aware of these two issues with Makefile-s:
Assignments are due at 11PM (not 10PM)
Different handouts showed either 10PM or 11PM (since corrected). 11PM it is.