Homework

icon Turn in via SVN. Group Project: Yahtzee

Several due dates, described in spec.
Lateness policy described in spec.

Spec:
Groups:
Provided Files:
Links:

icon Turn in HW6 here. Homework 6: Tic-Tac-TWO!

Due Friday, May 20, 8:00am (first thing in the morning).
No submissions accepted after Sunday, May 22, 8:00am.

Spec:
Provided Files:
Sample Solution:
Links:

icon Turn in HW5 here. Homework 5: Tic-Tac-Toe

Due Monday, May 9, 8:00am (first thing in the morning).
No submissions accepted after Wednesday, May 11, 8:00am.

Spec:
Provided Code: none
Sample Solution:

(Download and run the .jar file; or on Windows you may need to download both files and run the .bat instead. Note that this is a console program, and double-clicking a .jar usually doesn't pop up any console to see the output. So you may need to run it from a Terminal, Command Prompt, etc. or use the .bat file on Windows.)

Links:

icon Turn in HW4 here. Homework 4: Election

Due Monday, May 2, 8:00am (first thing in the morning).
No submissions accepted after Wednesday, May 4, 8:00am.

Spec:
Provided Code:
  • icon The Big ZIP of ALL .java provided files, all provided election data text files, and all input/output logs

optional utility code files: (you can use these if you like, but not mandatory)

Election Input Data:
Input/Output Logs:
Sample Solution:

(Download and run the .jar file; or on Windows you may need to download both files and run the .bat instead. Note that this is a console program, and double-clicking a .jar usually doesn't pop up any console to see the output. So you may need to run it from a Terminal, Command Prompt, etc. or use the .bat file on Windows.)

Links:

icon Turn in HW3 here. Homework 3: Restaurant

Due Friday, April 22, 8:00am (first thing in the morning).
No submissions accepted after Sunday, April 24, 8:00am.

Spec:
Provided Files:
Input/Output:
  • icon input1.txt, first input file (a list of everything that was typed into the Scanner)
  • icon output1.txt, the output that resulted when the input in input1.txt was typed
  • icon input1.txt, second input file (focusing on waiting list manipulation)
  • icon output2.txt, the output that resulted when the input in input2.txt was typed

* (sample outputs UPDATED on Sun 4/17 8:30pm to fix 2 bugs)

Sample Solution:

(Download and run the .jar file; or on Windows you may need to download both files and run the .bat instead. Note that this is a console program, and double-clicking a .jar usually doesn't pop up any console to see the output. So you may need to run it from a Terminal, Command Prompt, etc. or use the .bat file on Windows.)

Links:

icon Turn in HW2 here. Homework 2: Scheduler

Due Wednesday, April 13, 8:00am (first thing in the morning).
No submissions accepted after Friday, April 15, 8:00am.

Spec:
Provided Files:
Sample Solution:

(Download and run the .jar file; or on Windows you may need to download both files and run the .bat instead.)

Links:

icon Turn in HW1 here. Homework 1: Shopping

Due Tuesday, April 5, 11:30pm.
No submissions accepted after Thursday, April 7, 11:30pm.

Spec:
Provided Files:

(In your Eclipse project, save the .java files in your project's source directory, usually src/ . Save the .txt file in your project's root directory, which is usually the parent of src/ . You may need to refresh your project in Eclipse (right-click in left Package Explorer, choose Refresh) to see the newly added files.

Sample Solution:

(Download and run the .jar file; or on Windows you may need to download both files and run the .bat instead.)

Links:

"I need help with my homework!"

  • There may be someone who has office hours today. 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 over the lecture slides and code from the most recent few lectures. Usually those examples are hints toward the assignment.
  • Make sure to attend every section. The sections are meant to help you with the assignments. Look at this week's section handout problems and their solutions.
  • Start early! It's harder to help someone if they wait until the day assignments are due.
  • Don't panic. You have late days, and even if you run out, it is only -10% for each day late.

Tutorials and Java style guides written by CSE 142/143 TAs (we expect a similar style here in CSE 331):