HW5
Submission (10 Pts)
- (5) Submitted PictureTest class
- (5) Submitted a PictureElement class (any one we used in class)
Syntax & Semantics (5 Pts)
- (5 Pts) Code Compiles
- (-2) for each error up to max of 5
New Methods (40 Pts)
- (10 Pts) properly defined replace method
- (-5) Problems with loop or recursion
- (-5) Other problems
- (15 Pts) properly defined addNTimesAfterElement method
- (-5) Problems with loop or recursion
- (-10) Other problems
- (15 Pts) properly defined findAndReplaceRepeat method
- (-5) Problems with loop or recursion
- (-10) Other problems
Testing Main (10 Pts)
- (10 pts) Defines a main method which utilizes all three new methods
- (-3) If less than 3 pictures in the original background.
- (-3) not using all three new methods
Functionality (25 Pts)
- (10 pts) Displays original pic, replace pic, addNTimesAfterElement pic, findAndReplaceRepeat pic
- (-5) For each missing for max of -10
- (15 pts) Results are correct (+5 pts for each modified picture)
- Note: also test the methods with different parameters
Comments & style (10 Pts)
- (3 pts) Has name and GT num
- (5 pts) Each section of code is commented
- (2 pts) Reasonable variable names Must clearly distinguish differences bewteen pictures and Nodes
Link to this Page