COMP 401 Recitation Materials

Materials

Help Signup Sheet
How to import code (Don't forget to add object editor)

11/17/17
Generics, Exceptions, and Undo Commands (From previous years)


11/11/16
More About Generics, Abstract Classes, and Exceptions


11/3/17
Threads and Assertions


10/27/17
MVC

10/20/17
Fall Break
Observer Pattern


10/6/17
Factories and Lists


9/29/17
Inheritance


9/22/17
Composite Objects


9/15/17
Casting and Drawing with ObjectEditor


9/7/17
Interfaces and Annotations


9/1/2017
Beans and object editor


8/25/17
Checkstyle and Local Checks

Starting with Java and Eclipse On your own before first recitation

Information

Project Feedback

Please go to sakai to get feedback on your assignments.

Face Images

Images you can use for project 5 are here: images.zip

Submission Instructions

This is what you must do to submit your assignment.

  1. Make sure that your main method is in a file named Assignment1.java (for the first assignment) in a package named main.
  2. Zip up your project directory (not just the src folder)
  3. Add screen shots of your program working correctly to that zip file
  4. Upload the zip file to Sakai

Rubrics

Assignment 3

Local Checks
  • 75 points + 15 extra credit
Scanner Bean
  • (15 points) Scanner Bean correctly calls getInput for all beans and calls getValue for a Number or Word.
  • (15 points) Each bean type is instatiated in some way (word, number, quote, start, end)
Token Classes
  • (24 points) Properties of each class are properly defined.
  • (15 points) All token classes have a single parameter constructor.
Interfaces
  • (21 points) All Interfaces are created and used
  • (10 points) Public methods are in the interface for respective properties
Extra Credit
  • (8 points) Plus and Minus classes instatiated with the proper interface.
  • (8 points) Plus and Minus classes have proper constructor and properties defined.
Screen shots
  • (10 points) Proper screen shots enclosed
Penalty
  • (-25 points) Illegal call or import
  • (-10 points) Not having a "main" package having a main class called "Assignment3".
  • (-3 points each) Not having the tags “Number”, “Word”, “Quote”, “Plus”, “Minus”, “Start”, “End” for number/word/quoted string/plus (extra credit)/ minus(extra credit), start token, end token , respectively.
  • (-10 points) Not declaring your bean variable to be of an Interface type
  • (-20 points) Not uploading the project in a zipped folder with bin and src folders.
  • (-10 points) Each class is not in its own file.

Assignment 2

  • (10 points) scanString() and indexOf() called in ScannerBean class
  • (5 points) ScannerBean instatiated once in main class
  • (20 points) Works properly with multiple quoted strings
  • (10 points) Works properly with multiple number
  • (10 points) Works properly with multiple words
  • (10 points) Correctly runs with mixed word, number, and quoted string inputs
  • (10 points) Mixed output works properly
  • (30 points) Screenshots enclosed showing you using the debug mode
Extra Credit
    (5 points) Works with the + and - signs
  • (5 points) Recovers from a missing quote in someway
  • (5 points) indexOf() called in scanning iterator [Offsets points lost for not caling in Bean class]
Penalty
  • (-25 points) Using illegal import [.* import] or illegal method call [Scanner.next()]

Assignment 1

Functionality
  • (15 points) scanString() passes all tests
  • (3.3 points) Properly prints out single token
  • (3.3 points) Properly calculates and prints out sum with single token
  • (3.3 points) Properly calculates and prints out product with multiple single (even if the product is "wrong" due to overflow)
  • (10 points) Properly prints out multiple tokens
  • (10 points) Properly calculates and prints out sum with multiple tokens
  • (10 points) Properly calculates and prints out product with multiple tokens (even if the product is "wrong" due to overflow)
  • (5 points) Properly terminates when line input starts with a "."
  • (18 points) indexOf() performs as expected
Style
  • (15 points) Assignment1 class calls processInput()--> void, indexOf(String, char, int) --> int, and scanString(String)-->void
  • (15 points) Screenshots included
Extra Credit
  • (5 points) Turn in Early (Wednesday 8/30 by 11:55 pm)
  • (30 points) Iterator implemented correctly
  • (5 points) indexOf() called in Iterator class (offsets failing to call indexOf() in Assignment1 class)
  • (5 points) indexOfNot() correctly runs and called
  • (10 points) Correctly handles illegal characters
  • (10 points) Especially nice code (Extra meaningful methods, useful classes, good comments/documentation)
Penalty
  • (-20 points) Illegal library import or import using * (e.g. StringTokenizer or "import java.io.*;")
  • (-25 points) Illegal Method Call (i.e. split() )
  • (-10 points) Not having a main package having a main class called Assignment1.

Old Recitations

Iterator 11/20/15

Generics, Exceptions, and Undo Commands 11/13/15

Synchronized Threads and Thread Coordination 11/11/16

Threads and Assertions 11/4/16

MVC 10/28/16

Observer Pattern 10/14/16

Collections 10/7/17

Inheritance 9/30/16

More Drawing with ObjectEditor 9/23/16

Drawing with ObjectEditor 9/16/16

Interfaces and Annotations 9/9/16

Checkstyle and Local Checks 9/2/16

Eclipse Programming 8/26/16

Starting with Java and Eclipse On your own before first recitation