Programming assignment:
The purpose of this assignment is to introduce you to beginning Java programming
concepts and to get you to
find the Java compiler, learn how to edit, compile, and print Java source
code files, and to learn how to print the
output of your Java applications and applets.
Write a Java application, using good style, similar to the Hello.java application, that will print your name and something about you. Write a Java applet, similar to the HelloApp.java applet, that will print your name on one of your web pages.
Hand in:
Hardcopy of both your source code files and the output of both your programs. Email me the URL of the page with your applet. (I will be posting a list of student pages off the class web page - if you do not want your class page published, or if you would like your home page URL published instead (too), let me know in the email message.) 1 point extra credit to everyone who prints the web page using the browser and explains why the applet doesn't show. (Just hand write the explanation on the printout.)
Programming assignment:
The purpose of this program is to give you an opportunity to practice loops and branching statements.
Write a application and an applet that prints out a
random
number
(at least 1) of randomly selected pieces of advice.
(int)( Math.random() * 20) // generates a random number from 0 to 19
Hand in:
Hardcopy of your source code for both the applet and the application
and hardcopy of the output of your application.
Assignment:
The purpose of this assignment is to give you a chance to look at other people's
java code and see how they organize their classes.
Homework:
Hand in:
The annotated
hardcopy of your applet code with the URL of the original applet
and the URL of your applet.
Add another subclass to the Circle class . Include at least 2 constructors for your new class. Write a Java application that creates at least one instance of each subclass (inclu ding yours) and uses access methods to print out the values of the variables. W rite a Java applet that draws one object from each of the Circle subclasses - inclu ding your subclass. (See sample.)
Hand in:
Hardcopy of your new subclass, output from your application, and email m
e the url of your applet.
Start thinking about what you want to do for your class project.
Programming assignment:
Use the form handed out in class to make
a list of all the things you can do to an applet while it is running, e.g.,
move to a different page, scroll the page, etc, and tell which methods
are called for each thing you do. Use the
ExtendedSimple
applet to find out which methods are called.
Decide on a project to work on for the rest of the class. It can be anything you want, but it must
Prepare a program header for your project and a rough sketch of the graphical user interface (GUI).
Hand in:
The form describing the
things you tried while running the ExtendedSimple applet and
which methods were called for each.
The program header describing your project and the GUI sketch.
Programming assignment:
Start writing the code for your project. Include at least 2 of the required classes.
Hand in:
Hardcopy of the applet or application and output.
Programming assignment:
Finish adding the required classes and start creating your GUI.
Hand in:
Hardcopy of the applet or application and output.
Assignment:
Finish the GUI and start adding event handling to your project
Hand in:
Nothing!!!
Programming assignment:
Add event handling to your project.
Hand in:
Hardcopy of the applet or application and output.
Programming assignment:
Grade a class mate's program. (NOTE: you will be graded on the grading, so going easy
on the person will only hurt you - they will get the grade I would have given them,
no matter what you put.)
Program - 50 points for having everything required:
(-5 each thing that is missing from the code, -1 each stupid line of code)
Hand in:
The other person's program with your name and the grade you gave them on it.
Programming assignment:
Finish your animations.
Hand in:
Last Updated by S.L Bartlett : Tuesday November 10, 1998 at 14:32:47 EST