CS 157 Spring 2003      

Assignment 1 – Getting Started – especially using the Sun Studio ONE Interactive Development Environment

50 points

 

Assigned: 01/16/2003

Due: 01/22/2003 (at the start of class – as will be the normal case)

 

Main Assignment:

 

                Create a directory to hold programs. Mount it as a filespace in Sun’s Studio ONE. Create packages sp2003as1 and IO in that filespace. Create a new Class (main) named Assignment1 in the sp2003as1 package. Type in the pizza program shown on page 2 of the assignment sheet in the Assignment1 file. Put your name and e-mail address in comments near the top (where it says  “Your Name”).  Get the Keyboard.java file from my WWW page or from the CD that came with the book. Put it in the IO folder that was created when you created that package. Compile the program and remove any errors. Ensure that the program runs correctly.

                Note that this is an exercise in using the development environment. We haven’t discussed programming yet. I have given you a program that has been tested and is working. So any errors that you get are likely due to mistyping; check your work against the copy shown on page 2.

                To avoid needless long waits, I recommend doing this on the c: drive, then upon completion, copying it to the a: drive, testing it there, creating an extra backup for yourself, then deleting it from the c: drive.

                Note for anybody reading this on the WWW – the program to be typed is not included in the WWW version of the assignment (otherwise you could pretty much just download the file). You will need to get the “hardcopy” from me or from one of your classmates.

 

Hand in: