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. Write a Java applet, similar to the HelloApp.java applet, that will print your name on one of your web pages.
Hand in a hardcopy of both your source code files and the output of both your prog rams. 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.)
Programming assignment:
Write an application and an applet that prints something (a joke, a quotation, a fortune, whatever) for the user based on the current time. You should have at least 8 different things. You can get the time in your program
by creating an variable of type
Date.
import java.util.Date;
Get the date by initializing your Date variable like this:
Hand in a hardcopy of both your source code files and the output of your application. Email me the URL of the page with your applet.
Programming assignment:
Find a cool applet on the web. Put is on your home page. Print out the applet
and label all class names, all instance variables, all methods, all class
variables, and all class methods. Circle all method calls and put a
rectangle around all class and instance variable accesses.
Programming assignment:
The purpose of this program is to give you practice creating and using classes.
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 (including yours) and uses access methods to print out the values of the variables. Write a Java applet that draws one object from each of the Circle subclasses - including your subclass. (See sample.)
Hand in hardcopy of your new subclass, output from your application, and email me the url of your applet.
Start thinking about what you want to do for your class project. Here are some suggestions from Dr. Frost.
Programming assignment:
Write a main header for your project. Include a rough sketch of what the input and output will look like. Draw a preliminary class hierarchy.
Programming assignment:
If necessary, revise your project design, redraw the new class hierarchy and rewrite the main header. Write a detailed description of each class you will write. Write code for one of your classes and a driver to show what it does.
Programming assignment:
Enhance your project with color, graphics and fonts.
Programming assignment:
Add threads to your project.
Programming assignment:
Add to your project. Hand in a progress report.
Programming assignment:
Add to your project. Hand in a progress report.
Programming assignment:
Add to your project. Hand in a progress report.
Programming assignment:
Finish the project.
Last Updated by S.L Bartlett on