CISC370, Summer 2006, Assignment 5 (Total 100 pts + EC) Due July 27 TA: Ke Li Java coding style - Formatting of code < 80 column, no wraparound -2 pts Late penalty: 10% off each day No hard copy submitted: 10% off 1. Correctness (50 pts + EC 5pts) - Racers in a line (25 pts + EC 5pts) -- createMovers() 10 pts --- size(height) scaled by # of racers -- move() --- random speed each time called 5 pts --- stop when hit right boundary 5 pts -- paint(): draw rectangles 5 pts -- Extra Credits: fancier cars 5 pts - Walkers on a diagonal (25 pts) -- createMovers() 10 pts --- size(width,height) scaled by # of walkers -- move() --- constant speed 5 pts --- random angle each time called 5 pts Should be very simple like: angle = Math.random() * 2 * Math.PI x = speed * cos(angle) y = speed * sin(angle) --- stop/bounce when hit 4 boundaries (optional) -- paint(): draw rectangles 5 pts 2. Organization (20 pts) - packages -- package name 2 pts --- lastname.assign5, or, --- lastname.assign5.yourwork -- code directory structure 3 pts - inheritance 7 pts - good OOP style: separate of concerns 8 pts 3. Testing: screenshots (20 pts) - clearly labeled with information that shows what's going on - should show initially and after a period of time for each screen saver (Racers, Walkers) - should show with different number of things to demonstrate that objects are drawn/scaled appropriately 4. Documentation (10 pts) - README 5 pts - Java Docs 3 pts - comments inside code 2 pts