Project
Information about the programming assignments will be posted here.
Part 3:
- The handout about this programming assignment has been posted to the class handouts page.
- Here is the skeleton code and initial test data.
Part 2:
- The handout about this programming assignment has been posted to the class handouts page.
- Here is the skeleton code and initial test data.
- Here is a handout with some Tips on Bulk Insertion.
- Here is our canonical solution.
Part 1:
- The handout about this programming assignment has been posted to the class handouts page.
- Here is the skeleton code and initial test data.
- Here is our canonical solution.
Part 0:
- The handout about this programming assignment has been posted to the class handouts page.
- The program must be written in Java, but you may use any IDE you like and any fairly recent version of Java should be sufficient. For instructions on how to get Java set up with Eclipse, see the CMSC 131 Java/Eclipse instructions. (Don't bother with the Course Management Plugin.)
- Here is the skeleton code and test data.
- Setting up the Java project in Eclipse (on Windows).
- Download the above Skeleton code and unzip.
- Fire up Eclipse in the Java perspective.
- Select: "File → New → Java Project".
- Unselect "Use default location" and click "Browse".
- Navigate to the folder you unzipped: "Part0-Skeleton".
- Click "Select folder".
- On returning to the New Java Project window, you should see "Project name: Part0-Skeleton" and "Location: C:\...\Part0-Skeleton". (You can change the Project name to something you prefer.)
- Unselect "Create module-info.java file".
- Click "Finish".
- If you see the folders "cmsc420_f22" and "tests" in your Eclipse Package Explorer window, then you should be good to go!
- Running the program (on Eclipse).
- In the Package-Explorer window, double-click on the files "Part0Tester.java", "Part0CommandHandler.java", and "ExpandingStack.java" to open them.
- The file "ExpandingStack.java" is the one you will modify.
- The file "Part0Tester.java" contains the main program. The lines inputFileName = "tests/test01-input.txt" and outputFileName = "tests/test01-output.txt" specify the input and output files. You can change these as you like.
- To execute it, open "Part0Tester.java", click on the "Run" icon (the green circle with the white triangle) and select "Run as → Java Application".
- If all goes as expected, you won't see much in the Console except a few lines starting with "Completed Execution". The output will appear in the file "tests\test01-output.txt".
- To view the output, go to the Eclipse Package Explorer window, right-click on "tests", and select "Refresh".
- Among the files under the tests directory, you should now see "test01-output.txt". Double-click to view the contents of this file.