Homework

icon Turn in HW8 Homework 8 (Huffman Coding)

Due Thu June 2, 11:30pm.
No submissions accepted after Sun June 5, 11:30pm.

Specification:
Provided Files:
Links:
FAQ / Help:

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

Due Fri June 3, 11:30pm.

No late submissions accepted.

Specification:
Provided Files:

icon Turn in HW7 Homework 7 (20 Questions)

Due Thu May 26, 11:30pm.
No submissions accepted after Sun May 29, 11:30pm.

Specification:
Provided Files:
Links:
FAQ / Help:

icon Turn in HW6 Homework 6 (Anagrams)

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

Due Thu May 12, 11:30pm.
No late submissions accepted after.

Specification:
Links:

icon Turn in HW5 Homework 5 (Evil Hangman)

Due Thu May 5, 11:30pm.
No submissions accepted after Sun May 8, 11:30pm.

Specification:
Required Files:
Testing Programs
and Test Cases:

Links:
FAQ / Help:

icon Turn in HW4 Homework 4 (Grammar Solver)

Due Thu April 28, 11:30pm.
No submissions accepted after Sun May 1, 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 Apr 21, 11:30pm.
No submissions accepted after Sun Apr 24, 11:30pm.

Specification:
Required Files:
Testing Programs
and Test Cases:

Links:
FAQ / Help:

icon Turn in HW2 Homework 2 (HTML Validator)

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

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

iconTurn in HW1 Homework 1 (Letter Inventory)

Due Thursday April 7, 11:30pm.
No submissions accepted after Sun April 10, 11:30pm.

Specification:
Testing Programs:
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: