|
|
|
|
Output Comparison Tool (for testing whether your program produces the correct output)
-
Assignment #8 (Critter Safari) -- Due electronically Thursday, March 8, 9:00pm. Turn in HW8 here.
NOTE: Homework 8 must be turned in by Sunday, March 11, 11:59pm to receive any credit.
-
Assignment #7 (Personality Test) -- Due electronically Thursday, March 1, 9:00pm. Turn in HW7 here.
-
Assignment #6 (Baby Names) -- Due electronically Thursday, February 22, 9:00pm. Turn in HW6 here.
Specification: |
hw6-babynames.pdf |
Required files: |
DrawingPanel.java
names.txt
names2.txt
|
Sample solution: |
hw6-babynames.exe (Windows)
hw6-babynames.jar (other operating systems)
|
Expected output:
|
(updated Wed Feb 14 4:30pm to fix a minor mistake)
standard tests (file name = "names.txt", start year = 1900, decades = 11, width = 50):
Test #1: text,
graphical,
mac
Test #2: text,
graphical,
mac
Test #3: text,
graphical,
mac
Test #4: text,
graphical,
mac
Test #5: text,
graphical,
mac
Test #6: text
with constants changed (file name = "names2.txt", start year = 1920, decades = 8, width = 80):
Test #1: text,
graphical,
mac
Test #2: text,
graphical,
mac
Test #3: text,
graphical,
mac
Test #4: text,
graphical,
mac
Test #5: text,
graphical,
mac
Test #6: text
|
-
Assignment #5 (Guess 2D) -- Due electronically Thursday, February 8, 9:00pm. Turn in HW5 here.
Since this program uses random numbers, you may not be able to exactly reproduce the log of execution shown. Your format must match exactly, but not necessarily the exact numbers produced.
-
Assignment #4 (Doodle, Checkers) -- Due electronically Thursday, February 1, 9:00pm. Turn in HW4 here.
You won't use the Output Comparison Tool to test HW4's output. Instead, you'll use the Compare to File feature in the DrawingPanel. To use it, right-click the hw4-checkers.png file above and choose Save Target As... to save it to your computer in the same folder as your Checkers program. Then run your Checkers.java program, and on the DrawingPanel click File, Compare to File... and select the hw4-checkers.png file. A "DiffImage" utility will appear to help you inspect your graphical output.
-
Assignment #3 (Grades) -- Due electronically Thursday, January 25, 9:00pm. Turn in HW3 here.
If you are using the Output Comparison Tool to test your program's output, you should copy your output from the Console tab at the bottom, rather than from the Interactions tab. Run the program, and then once it's done, click Console and select the output to copy it.
-
Assignment #2 (Space Needle) -- Due electronically Thursday, January 18, 9:00pm. Turn in HW2 here.
If you are stuck or need help on an assignment:
- Read the corresponding book chapter, especially its case study, which is a detailed example similar to your assignment.
- Look at the example files from lecture in the Lectures/Files section.
- Look at your Thursday section handout problems.
- Go see a TA in the IPL for help.
- Email your TA and/or instructor if you have specific questions.
-
Assignment #1 (Six Days of "Xmas") -- Due electronically Thursday, January 11, 9:00pm. Turn in HW1 here.
Homework Submission Policy
All students are responsible for knowing the homework submission policy
Information on the course policies on academic integrity and collaboration can be found on the syllabus page.
|