Programming Project 1a

Due at the beginning of class, Friday of Week 1


This programming project should be done individually. It is okay to get help from the TAs and/or the instructor if you get stuck, but you should try to do it on your own first.

You should get into the habit of making backup copies of your work. See Productivity Hint 1.2 on p. 15 of the textbook (actually on the web site) for a discussion of this.


You have a choice for this programming project; you may implement any of the first four programming exercises from Chapter 1 in the textbook (P1.1 - P1.4 on pp. 28 - 29) or you may implement Alternative 5 described below.
  1. Create a new project. In the BlueJ Project menu, select "New Project...." Give the project a name that describes the program option you chose.

  2. Create a new class by clicking on the "New Class" button in the control panel to the left of the project diagram. Give your new class an appropriate name for the program you chose to implement. Using a big copy-and-paste, replace the BlueJ default contents of your class with the contents of the TrivialProgramClass from Lab 1 or the contents of the K template for main classes. Change the name of the class to match the name you gave the file, and change the welcome message to be appropriate for this project. Make sure that this initial version of your program will compile and run.

  3. Modify the contents of the main method in your new class to implement the program you chose. Update the javadoc comments at the top of your file to reflect the changes you made. Compile and run your program to be sure that it works as specified.

  4. Update the project README file (the icon in the upper-left corner of the project diagram). Focus on what the program does, rather than how it does it. Include your name and the date as well as the names of anyone from whom you received help. Providing proper documentation is an important step towards writing well-structured and reusable programs.

  5. When you are done, submit the project README file and the Java source code (the .java file) for the class you created (2 files) on Moodle by the beginning of Mini-Lab 1 (Friday). If you are using a USB drive to save your work, copy the whole project directory to your USB drive.