Homework

  • diff Output Comparison Tool (check whether your program produces the correct output)
  • indent Indenter Tool (fix indentation of your Java code)
  • surveyGrading Complaint Form (if you don't agree with the way your assignment was graded)
    • NOTE: You must ask your TA about the grading first before using this form and have a valid reason to request a regrade.

"I need help with my homework!"

  • Check the message board; your question may have been answered there.
  • There is probably someone in the IPL today, or maybe Connor has office hours. If so, go visit!
  • 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 -2 points for each additional day late.

Tutorials and Java style guides written by TAs:

icon Turn in HW7 Homework 7 (Huffman Coding)

Due Tue, Aug 16, 11:30pm.
No submissions accepted after Fri, Aug 19, 11:30pm.

Specification:
Provided Files:
Links:
FAQ / Help:

icon Turn in HW6 Homework 6 (20 Questions)

Due Thu August 11, 11:30pm.
No submissions accepted after Sun August 14, 11:30pm.

Specification:
Provided Files:
Links:
FAQ / Help:

icon Turn in HW5 Homework 5 (Anagrams)

Due Thu, August 4, 11:30pm.
No submissions accepted after Sun, August 7, 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 External 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. In Windows, 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:
Sample trace :
Links:
FAQ / Help:

icon Turn in HW4 Homework 4 (Grammar Solver)

Due Tue, Jul 26, 11:30pm.
No submissions accepted after Fri, Jul 29, 11:30pm.

Specification:
Testing Programs
and Test Cases:

  • icon HW4 Grammar Verifier, a web page that lets you paste your sentences and math expressions from your grammar to see if they match the proper format
  • icon Recursion.java, a helper class with a method Recursion.println that lets you print nicely indented output from recursive calls
  • icon TestExpression.java, a short testing program that lets you paste in an expression generated from sentence3.txt and see whether it compiles

Links:
FAQ / Help:

icon Turn in HW3 Homework 3 (Assassin)

Due Thu Jul 14, 11:30pm.
No submissions accepted after Sun Apr 17, 11:30pm.

Specification:
Required Files:
Testing Programs
and Test Cases:

icon Turn in Bonus 1 Bonus Homework 1 (Buggy ArrayIntList)

Due Fri Jul 15, 11:30pm.
No late submissions accepted.

Specification:
Starter Files:

icon Turn in HW2 Homework 2 (HTML Validator)

Due Thu Jul 7, 11:30pm.
No submissions accepted after Sun Jul 10, 11:30pm.

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

iconTurn in HW1 Homework 1 (Letter Inventory)

Due Thursday June 30, 11:30pm.
No submissions accepted after Sun July 3, 11:30pm.

Specification:
Testing Programs:
FAQ / Help: