This assignment is meant to familiarize you with the following concepts discussed in class and your reading:
Instead of copying the code in your applet's constructor that creates a Smiley Face and manually changing each new set of variable names, you should make a Smiley face class so that Java will do the work of keeping track of that information for you. When you make a Smiley face class, then each time a one is created using new, Java will create a separate copy of the variables in that object and keep track of changes to them distinct from those in other instances of the class. In other words, each class tells Java what properties to create, but then Java maintains different instances of those variables.
You will update the code in your applet to make your Smiley face an class of its own, separate from the applet class. In Visual J++, do this by selecting Add Class from the Project menu and giving the new class a more meaningful name than Class1. Then change the code in the applet to create as many distinct Smiley face objects as you want.
In order to be able to put the Smiley faces in different positions so they are not all stacked on top of each other, you will need to be able to allow the applet to set the position and size of each separately. So, instead of locking those values away inside the Smiley Face object, you should allow the applet to pass those values to the Smiley face when it creates it, using parameters.
You should start a new project for this exercise. You should feel free to copy your code from the previous exercise, but you will be making many changes. Additionally, we will want to look at this exercise separately from your previous Smiley face.
When you are finished, you should upload you work to your acpub account, using FTP, by transferring the entire project directory created by Visual J++. Most importantly, this directory will contain an HTML page, index.html, that links to your applet code in Applet.class.