UW CSE logo uw

CSE 142: Computer Programming I, Autumn 2008

arrow CSE Home arrow About Us arrow Search arrow Contact Info

Homework

icon Turn in HW9 here. Homework 9 (Critters)

Due Wednesday, December 3, 11:30pm.
No submissions accepted after Sunday, December 7, 11:30pm.

Specification: icon HW9 Specification
Provided Files: icon CritterMain.java (the main GUI and program that you must run)
icon Critter.java (the default definition of a critter animal that you must extend)
icon Stone.java (an example animal that isn't very exciting)
Sample Solution: icon HW9 Sample Solution (run this to see how yours should behave)
Tournament Details:

On Fri Dec 5 in lecture we'll run a Husky tournament. Here are its rules; email Marty if you have any questions about the tournament.

  • At approximately 11:59pm on Thu Dec 4, we'll grab all Husky files from the HW9 turnin page (not from the Facebook app) and use these as the set of Huskies for the competition.
  • A "battle" is defined as the following: We run CritterMain with a standard 60x50 world, using 25 of each kind of animal. The animals present are Bears, Lions, Tigers, Stones, and two students' Huskies. We start the simulator and let it run until either one student's Huskies are completely eliminated or until roughly 1000 moves have passed. At this point whichever student's Husky species has the more points wins the battle.
  • Think of the Husky tournament like one of the major pro sports. We will run a "regular season" in which every student's Husky species will play many battles against randomly chosen opponent Huskies. We run a season of many games (at least 64 for each student), then we grab the top 16 Huskies that have the best win/loss records. They advance to the "playoffs", which is what will take place in lecture on Friday.
  • The playoffs consists of a 16-Husky bracket similar to part of an NCAA basketball tournament bracket. #1 battles #16, #2 battles #15, and so on. Winners advance and losers are eliminated. Eventually one Husky is crowned the champion.

icon Turn in HW8 here. Homework 8 (Birthday/Date)

Due Tuesday, November 25, 11:30pm.
No submissions accepted after Sunday, November 30, 11:30pm.

Specification: icon HW8 Specification
Required Files: icon Date.class | icon Date.zip (Zipped version for people having trouble on Macs)

If you have a Mac and still have trouble making it work, please make sure you have the most recent version of Java from our Working at Home page.

Expected Output:

icon Turn in HW7 here. Homework 7 (Personality Test)

Due Tuesday, November 18, 11:30pm.
No submissions accepted after Saturday, November 22, 11:30pm.

Specification: icon HW7 Specification
Required Files: icon personality.txt | icon bigdata.txt
Expected Output: When run on personality.txt: icon console output icon file output
When run on bigdata.txt: icon console output icon file output
Take the test: Facebook Facebook app personality test
FAQ: icon Frequently Asked Questions

icon Turn in HW6 here. Homework 6 (Baby Names)

Due Wednesday, November 12, 11:30pm.
No submissions accepted after Sunday, November 16, 11:30pm.

NOTE: We are trying to improve our turnin system and offer better security. When you click the Turn In link from the Firefox 3 browser, you may see a message about "Secure Connection Failed". You should click "Or you can add an exception...", then "Add Exception...", then "Get Certificate", then "Confirm Security Exception".

Specification: icon HW6 Specification
Required Files: icon names.txt | icon meanings.txt | icon names2.txt | icon DrawingPanel.java
Creative Output Files: icon creative_names.txt | icon creative_meanings.txt
FAQ: icon Frequently Asked Questions
Expected Output (taken on Windows):
Normal constant values:
Lisa: icon console icon graphical
Don: icon console icon graphical
Abbie: icon console icon graphical
Maya: icon console icon graphical
Ethel: icon console icon graphical
zOIdBErg: icon console (no graphical output)
Lis: icon console (no graphical output)
names2.txt (8 decades), 1863, 50px width:
Lisa: icon console icon graphical
Don: icon console icon graphical
Abbie: icon console icon graphical
Maya: icon console icon graphical
Ethel: icon console icon graphical
zOIdBErg: icon console (no graphical output)
Lis: icon console (no graphical output)
All expected output images:
icon Windows
icon Mac OS X 10.5 "Leopard"
icon Mac OS X 10.4 "Tiger"
icon Linux

icon Turn in HW5A here.
icon Turn in HW5B here.
Homework 5 (Guessing Game)

Part A due Tue Oct 28, 11:30pm. (no late turnins accepted!)
Part B due Tue Nov 4, 11:30pm. (No Part B submissions accepted after Sat Nov 8, 11:30pm.)

NOTE: We are trying to improve our turnin system and offer better security. When you click the Turn In link from the Firefox 3 browser, you may see a message about "Secure Connection Failed". You should click "Or you can add an exception...", then "Add Exception...", then "Get Certificate", then "Confirm Security Exception".

Specification:
Expected Output:
FAQ:

icon Turn in HW4 here. Homework 4 (Grades)

Due Tue Oct 21, 11:30pm.
No submissions accepted after Sat Oct 25, 11:30pm.

Specification:
Expected Output:
FAQ:

icon Turn in HW3 here. Homework 3 (Doodle / Circles)

Due Tue Oct 14, 11:30pm.
No submissions accepted after Sat Oct 18, 11:30pm.

Specification:
Resource Files:
  • icon DrawingPanel.java (right-click this link and Save the file in the same folder as your HW3 program)
Expected Output:
FAQ:

icon Turn in HW2 here. Homework 2 (ASCII Art / Space Needle)

Due Wed Oct 8, 11:30pm.
No submissions accepted after Sun Oct 12, 11:30pm.

Specification:
Expected Output:
FAQ:

icon Turn in HW1 here. Homework 1 (Song)

Due Wed Oct 1, 11:30pm.
No submissions accepted after Sun Oct 5, 11:30pm.

Specification:
Expected Output:
FAQ:

"I need help with my homework!"