Homework

icon Turn in HW8 Homework 8 (Huffman Coding)

Due Thu June 1, 11:30pm.
No submissions accepted after Sun June 4, 11:30pm.

Specification:
Provided Files:
Links:
FAQ / Help:

icon Turn in HW8 bonus Homework 8 Bonus (Huffman Coding Bonus)

Due Fri June 2, 11:30pm.

No late submissions accepted.

Specification:
Provided Files:

icon Link Available Soon Homework 7 (20 Questions)

Due Thu May 25, 11:30pm.
No submissions accepted after Sun May 28, 11:30pm.

Specification:
Provided Files:
Links:
FAQ / Help:

icon Turn in HW6 Homework 6 (Anagrams)

Due Thu May 18, 11:30pm.
No submissions accepted after Sun May 21, 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 HW5 Homework 5 (Grammar Solver)

Due Thu May 4, 11:30pm.
No submissions accepted after Sun May 7, 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 HW5 Homework 4 (Evil Hangman)

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

Specification:
Required Files:
Testing Programs
and Test Cases:

Links:
FAQ / Help:

icon Turn in HW3 Homework 3 (Assassin)

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

Specification:
Required Files:
Testing Programs
and Test Cases:

Links:
FAQ / Help:

icon Turn in HW2 Homework 2 (HTML Validator)

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

Specification:
Required Files:
  • icon HtmlTag.java
  • iconHtmlvalidator.zip (Required Files and Test Programs in a zip. In Eclipse, put .java files in your src folder and .html files in your top-level project folder)
Testing Programs
and Test Cases:
Links:
FAQ / Help:

icon Turn in HW1 Homework 1 (Tiles)

Due Thu Apr 6, 11:30pm.
No submissions accepted after Sun Apr 9, 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 Zorah 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.
  • 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: