CST112 Project 11: Chapter 10
-
In this exercise you will be creating and instantiating objects from two classes;
use your imagination to create two
class
files that have some "logical" relationship to each other,
although for this assignment they actually will not interact
-
This is an "open-ended" application which should be completed
using classes, objects and arrays;
-
In the first class create animated figures that move without user input,
but rather using variables and an arithmetic algorithm bounce off the
output window walls, jump up and down, or whatever else you choose; your
"driver" should implement an array of several instance objects
from this class and you should iterate through the object array to
instantiate the objects and call their methods
-
In the second class you should create a new animated
figure that moves (left, right, up, down or whatever you choose) through user
interaction by pressing various keys on the keyboard; your "driver" application
should instantiate just one instance object from this class
-
The size of the output window should be at least 400 by 400 pixels
-
Additionally include a drawBackground
()
method that draws
the background for the sketch which could include a Processing background()
function call but should additionally implement coding that creates a
background (no PImage
objects)
-
Please take special note that this assignment involves creating just
a single application (not two) with
the two
class
files but just one "driver" file
(a total of three files to be submitted)
-
The difference between full credita grade of 10 out of ten points or
lesson this assignment generally is contingent on the complexity of the design
so, since all students are completing the same basic project, be as creative as you can, not only
with the class design, but also with the design of the drawBackground
()
function
-
Click the Play Project 11
link to view an sample application prepared by the
instructor which demonstrates the type of functionality that could be
built into your sketch; however this is just an example since your assignment
is to create something completely different
-
Insert comments at the beginning of all three
program files for the assignment project number, your name and e-mail
address, the date of submission, and a brief description of what the
program does; additionally comment each of the sections of code, including
a comment at the beginning of each of the programmer-defined functions/methods
-
Students may work on all projects in teams of two or three,
and, if so, all students in the group must submit the same project to their own dropboxes
in Blackboard. In the text box's dropbox, as well as in the source code documentation
(comments), state the name(s) of the classmate(s) with whom you worked.
-
The completed project archived into a ".ZIP" file submitted
electronically via an attachment to a
Brightspace
dropbox is due to Prof. Struck no later than 11:59 p.m. on the date
listed in the course outline.