CS215

Assignment #2 (First Programming Project)


DUE: Thursday, 9/18/2014

Do the Programming Project in Chapter 3 ("Creating a Shell Interface Using Java"), described on pages 149 - 152. One very simple added requirement: instead of only exiting when the user types ctrl-c, let's allow the user to make a graceful exit by typing exit.

Note: For those who are up to a bit more of a challenge, you also have the option of doing this in C, building on the POSIX, rather than Java, API. In either case, the platform for testing will be the Linux machines in the lab.

Students will be expected to collaborate on this project in pairs. Some suggestions for pair programming can be found here, but please regard these only as guidelines. Further requirements/ground rules will be discussed in class and lab.

Where to start? A few things can be gleaned from examples discussed in class. For the Java version, see OSProcess.java and SimpleShell.java, and for the C version, newproc-posix.c and simple-shell.c.


Back to CS215 Home Page