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.

Tip: You should get into the habit of making backup copies of your work.


How to do it …

  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. 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.

    Tip: Here are some handy keyboard shortcuts:
        Select-All: Command-A (Mac), Control-A (Windows)
        Copy: Command-C (Mac), Control-C (Windows)
        Paste: Command-V (Mac), Control-V (Windows)
  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 with your name and the date, as well as the names of anyone from whom you received help. Compile and run your program to be sure that it works as specified. Providing proper documentation is an important step towards writing well-structured and reusable programs.

  4. When you are done, change the name of your project folder to YourName_PP1a, zip it, and submit the complete project to Kit as a single zip file.