Homework

Academic misconduct: You must work individually on all homework assignments. We check against all students from this quarter and from past quarters going back many years. An accusation can lead to reduced grades or hearings with a misconduct committee. Please be careful. We have already flagged dozens of students to date.

icon Turn in HW8 here. Homework 8 (Critters)

Due Tue May 31, 9:00pm.
No submissions accepted after Saturday Jun 4, 9:00pm.

Specification: icon Specification
Required Files: icon hw8.zip (all the files below in one zip file)
icon Critter.java (the default definition of a critter animal that you must extend)
icon CritterInfo.java (interface for querying the state of the simulation)
icon CritterMain.java (the main simulator and program that you must run)
icon CritterModel.java (keeps track of the state of the simulator)
icon CritterFrame.java (provides the user interface to the simulator)
icon CritterPanel.java (displays a grid of critters)
icon FlyTrap.java (an example critter that is a little exciting)
icon Food.java (an example critter that is less exciting)
FAQ and Links:

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

Due Tuesday May 24, 9:00pm.
No submissions accepted after Sat May 28, 9:00pm.

Specification: icon Specification
Input Files: (right-click these files and click Save Link Target As...)
Expected Output:
Take the Test icon Personality Survey
FAQ and Links:

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

Due Tuesday May 17, 9:00pm.
No submissions accepted after Sat May 21, 9:00pm.

Specification: icon Specification
Required Files: icon names.zip (uncompressed: icon names.txt) | icon names2.txt | icon DrawingPanel.java
FAQ and Links:
Example Output:
Normal constant values:
Lisa (F) icon console graphical (iconLinux, iconMac, iconWin)
Lisa (M) icon console graphical (iconLinux, iconMac, iconWin)
Sue (M) icon console graphical (iconLinux, iconMac, iconWin)
Don (M) icon console graphical (iconLinux, iconMac, iconWin)
Ethel (F) icon console graphical (iconLinux, iconMac, iconWin)
zOIdBErg (M) icon console (no graphical output)
1962, 28 years, 8px width, names2.txt:
Lisa (F) icon console graphical (iconLinux, iconMac, iconWin)
Lisa (M) icon console graphical (iconLinux, iconMac, iconWin)
Sue (M) icon console graphical (iconLinux, iconMac, iconWin)
Don (M) icon console graphical (iconLinux, iconMac, iconWin)
Ethel (F) icon console graphical (iconLinux, iconMac, iconWin)
zOIdBErg (M) icon console (no graphical output)

icon Turn in HW5 here. Homework 5 (Guessing Game)

Due Tue May 3, 09:00pm.
No submissions accepted after Sat May 7, 09:00pm.

Specification:
Expected Output:
  • icon #1 | icon #2 | icon #3 | icon #4
  • with constant changed: icon -> to 5 | icon -> to 374
  • Because the program is random, it's hard to match our expected output exactly. But you should match the exact format shown. See the HW5 FAQ link below to learn possible ways to exactly match our output.
FAQ and Links:

icon Turn in HW4 here. Homework 4 (Grades)

Due Tue April 26, 09:00pm.
No submissions accepted after Sat April 30, 9:00pm.

Specification:
Expected Output:

These provided tests do not test every possible case. You should perform your own testing with other input values to make sure that your program works correctly.

FAQ and Links:

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

Due Tue April 19, 09:00pm.
No submissions accepted after Sat April 23, 09:00pm.

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 and Links:

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

Due Tue April 12, 09:00pm.
No submissions accepted after Sat April 16, 09:00pm.

Specification:
Expected Output:
FAQ and Links:

icon Turn in HW1 here. Homework 1 (Song)

Due Tue Apr 5, 9:00pm.
No submissions accepted after Sat Apr 9, 9:00pm.

NOTE: When you click the Turn In link from Firefox, you may see a message about "Secure Connection Failed". You should click "Add an exception...", then "Add Exception...", then "Get Certificate", then "Confirm Security Exception".

Specification:
Expected Output:
FAQ and Links:

"I need help with my homework!"

  • There is probably someone in the IPL today, or maybe Benson has office hours. If so, go see them.
  • Check the message board; your question may have been answered there.
  • Read the relevant chapters and sections of the textbook.
  • Look at the in-class lecture examples.
  • Look at this week's section handout problems and their solutions.
  • Start early! We get swamped the day assignments are due.
  • Don't panic. You have late days, and even if you run out, it is only -1 point for each day late.