|
|
||||||
Due Sun. Oct. 8, 11:59 PMThis lab requires that you use the a digital camera to generate a series of images for use in your movie. Pick a partner and sign up for your turn to use the camera right away!As promised, the first section of this lab is the completion of of last week's strategy pattern lab. You will be adding a new type of strategy that holds another strategy. We will find that this adding of an extra layer between two objects, "indirection", will reap great benefits in the way of a dynamic flexibility heretofore unattainable. When you have completed Lab 3 completely, zip the entire Lab 3 back up again and the place this zip file in the c:\scratch\cs150l4 directory. When you zip your Lab 4 to hand it in, be sure that you have included the zipped Lab 3. The second section of this lab serves two purposes. First, you will encounter a very interesting object structure called a "circular linked list". This "loop" of objects will enable us to create a continuously running "film loop" made of individual pictures. When the pictures are flashed on the screen in rapid succession, one after another, a short movie will appear. The second purpose is to introduce you to the "traditional" (if one can call something only a few years old, "traditional") method of writing Java code: using a simple editor and the DOS command line to create, compile and run your program. We will find ourselves severely restricted in what we can do, but you will write 100% of the code from end to end (though not without a few hints along the way!). This lab will provide minimal "hand holding" when it comes to code writing. You will want to spend time reviewing your old code to refresh your memory on how properties and methods are declared as well as how to invoke methods of objects. Do be sure to start the second section during lab time, as you will probably have a few questions on how to deal with the infamous "DOS prompt". Laboratory written by Stephen Wong |