Homework

Academic misconduct: Remember that 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 accused the following number of students of violating the policy on the given assignments:
  • HW4: 3 students
  • HW5: 3 students

icon Turn in HW8 here. Homework 8 (Huffman Coding)

Due Thu Mar 10, 11:30pm.
No submissions accepted after Sun Mar 13, 11:30pm.

Specification:
Provided Files:
Links:
FAQ / Help:

icon Turn in HW7 here. Homework 7 (20 Questions)

Due Thu Mar 3, 11:30pm.
No submissions accepted after Sun Mar 6, 11:30pm.

Specification:
Provided Files:
Links:
FAQ / Help:

icon Turn in HW6 here. Homework 6 (Anagrams)

Due Thu Feb 24, 11:30pm.
No submissions accepted after Sun Feb 27, 11:30pm.

Specification:
Required Files:
  • icon LetterInventory.class, a class to help you count, add, and subtract letters from words and phrases
  • icon LetterInventory.jar, JAR archive version for Eclipse
    • For those using Eclipse, you should include LetterInventory.jar in your project. To add the JAR file to your project, select your project, go to the Projects menu and select Properties, then Java Build Path, then Libraries, then click Add JARs. When you add LetterInventory.jar to the build path, it should work.
    • For those using jGRASP or another basic editor, just put LetterInventory.class in the same folder as your program.

      Sometimes this program produces a lot of output. If you run it in jGRASP, it will display just 500 lines of output. If you want to see more, go to the Build menu and select the Run in MSDOS Window option. Then when the window pops up, right-click on the title bar of the window, select Properties, and under the Layout tab you should be able to adjust the Screen Buffer Size Height to something higher (like 9999 lines).

Testing Programs
and Test Cases:
Links:
FAQ / Help:

icon Turn in HW5 here. Homework 5 (Grammar Solver)

Due Wed Feb 16, 11:30pm.
No submissions accepted after Sat Feb 19, 11:30pm.

Specification:
Testing Programs
and Test Cases:
Links:
FAQ / Help:

icon Turn in HW4 here. Homework 4 (Assassin) (A.K.A. "Affection")

Due Thu Feb 3, 11:30pm.
No submissions accepted after Sun Feb 6, 11:30pm.

Specification:
Required Files:
Testing Programs
and Test Cases:
Links:
FAQ / Help:
Real-Life Game:

icon Turn in HW3 here. Homework 3 (HTML Validator)

Due Thu Jan 27, 11:30pm.
No submissions accepted after Sun Jan 30, 11:30pm.

Specification:
Required Files:
Testing Programs
and Test Cases:
Links:
FAQ / Help:

icon Turn in HW2 here. Homework 2 (SortedIntList)

Due Thu Jan 20, 11:30pm.
No submissions accepted after Sun Jan 23, 11:30pm.

Specification:
Required Files:
Testing Programs:

(UPDATED on Wed 1/19 to make their failure output clearer, in response to student questions)

Links:
Optional Files:
  • icon Arrays.java (not needed unless you have an older Mac with Java v1.5 or older; you should still import java.util.*; in your SortedIntList even if you use this file!)
FAQ / Help:

icon Turn in HW1 here. Homework 1 (Tiles)

Due Thu Jan 13, 11:30pm.
No submissions accepted after Sun Jan 16, 11:30pm.

Specification:
Required Files:
Sample Solution:
Links:
FAQ / Help:

"I need help with my homework!"

  • There is probably someone in the IPL today, or maybe Marty 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, or watch the textbook "online portal" videos if you have access to them.
  • Look at the in-class lecture examples.
  • Look at this week's section handout problems and their solutions.
  • Send us a message on AIM. (AIM is better for short questions; anything that involves looking at multiple lines of code is better done by email.)
  • 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.

Tutorials and Java style guides written by TAs: