Programming assignment:
The purpose of this assignment is to introduce you to beginning
Java programming concepts and to get you to
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 the class style, similar to the HelloWorldApp.java in the tutorial that will print your name and two lines of information about yourself. Write a Java applet, using the class style, similar to the HelloWorld.java applet in the tutorial that will print your name and two lines of information about yourself on one of your web pages.
Hand in:
Programming assignment:
The purpose of this program is to give you an opportunity to practice loops and branching statements.
Write both an application and an applet that prints out a random number of cliches, chosen randomly from a list of 6 or more.
Hand in:
Hardcopy of both the applet and the application.
Hardcopy of 3 runs of your application.
Programming assignment:
The purpose of this program is to give you a chance to look at other people's
Java code and see how they organize their classes, and also to give you some ideas
about possible projects you might want to do for the class.
Hand in:
the annotated
hardcopy of your applet code with the URL of the original applet
and the URL of your modified applet.
Programming assignment:
The purpose of this program is to give you an opportunity to practice
using inheritance, polymorphism, abstraction, and encapsulation.
Write another subclass of the class we designed in class. I have written a subclass - you must write a different one. Include at least 2 constructors for your new class and access functions for the new data. Write a Java application that creates at least one instance of each class (mine and yours - 3 classes all together) and uses access methods to print out the values of the variables. Write a Java applet that draws at least one object from each of the classes - mine and yours - 3 objects all together.
Think about what you want to do for your project. (You can have 1 partner.)
Hand in:
hardcopy of your new subclass, your application, your applet
and output from your application.
Assignment:
The purpose of this assignment is to help you get a feel
for how applets run in
a browser and to help you understand the purpose for each of the
applet methods.
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.
Hand in:
The form describing the
things you tried while running the ExtendedSimple applet and
which methods were called for each.
Assignment - :
The purpose of this assignment is to start the project design process.
Decide on a project to work on for the rest of the class. It can be anything you want, but it must
Write a brief description of what you want to do for your project, a formal description of the program requirements sort of like the one in the handout, only no that long.
Hand in:
Your project requirements - sort of like the 3 page description of the
bank project in the handout, only it doesn't have to be that long.
Finish the design process started in class.
Hand in:
Programming assignment :
Students, start your projects! Include code that uses the Font and Color classes.
Hand in: Hardcopy of your project and output if it is an application.
Programming assignment:
List the components, containers, and layout
managers you will need for your project and
draw the
containment hierarchy (Sun calls it the Component hierarchy) as well as
the inheritance hierarchy.
(Here is the
containment hierarchy for the
applet used in class. Notice
which method is used to set up the containment hierarchy. Think about why
the containment hierarchy is set up in that method instead of the paint()
method.)
Hand in: The list and hierarchies.
Programming assignment:
Add the components you will need to your project.
The components must show up, but they don't
have to do anything.
Hand in: Hardcopy of your project and output if it is an application.
Programming assignment:
Add event handling to your project.
Hand in: Hardcopy of your project and output if it is an application.
Programming assignment:
Add animation, sound, and images to your project.
Hand in:
Hardcopy of your project and output if it is an application.
Programming assignment:
Grade a class mate's program.
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:
Work on your project
Programming assignment:
Work on your project
Programming assignment:
Work on your project
Programming assignment:
Work on your project
Hand in - at the demo:
Hardcopy of your project and output if it is an application.
Due today - hardcopy of your program and evaluations of at least 3 other projects.
Last Updated by S.L Bartlett : Thursday, April 16, 1998, at 00:20:12 EDT