Program Listings

Home |   Java Main Page

The following is a list of programs built under my Java project. The programs are listed in order of date.
Newer applets are on the bottom of this page. Check there first!!!

Program Name and Description
Screen Shot
PhysicsContainerTest.html - a basic physics container with a Car.class, which is a basic subclass of the PhysicsObject.class
physics container test screen shot
PicTestor.html - a test of the various Images used in the Charge.class and the Car.class
picTest screen shot
PicTestor2.html - a test of the Fader.class, which leaves ghost images of PhysicsObjects
PicTest2 screen shot
PolygonTestor.html - a test of the basic Arrow.class, which creates an arrow shaped polygon
polygonTestor screen shot
RobotGame.html - a game which uses the Robot.class, which is a subclass of the basic Physics Object. In this game students are challenged to create vectors which will lead the robot to the prize. This game was played in the 2001 Physics Olympics. Students are asked to type in vectors into the robot's "memory" by clicking "Add Line". When the student clicks "Go!" the robot will execute the student's directions. Position, velocity, and acceleration vectors are tested. (Note: I added the arrow later; students do not see arrows on their screen)
the robot game
SDMCalculator.html - this program calculates the data table for the Physics 151 & 170 Pendulum Lab
sdm calculator screen shot
SimpleQuiz.html - this program quizzes students on uncertainties, statistics, and propagation, as learned in the first week of the Physics 151 & 170 Lab. (note: a bug in the Image is currently being fixed; some students may not be able to see the image; try resizing the screen for now)
simple quiz screen shot
SpringTest.html - this program allows students to run a virtual driven oscillations experiment. Students are asked to try different driving frequencies and plot the response curve.
springTest screen shot
SpringTest2.html - this program is a second version of SpringTest. It allows students to test natural, damped, and driven oscillations. (Damped oscillations are shown) Instructions for this applet are given under: http://www2.hawaii.edu/~jmcfatri/labs/SpringAssignment.html
SpringTest screen shot
UnitJumble.html - This is a silly game that I made up to encourage my students to remember to put units in their results. The game asks you to select units from a list -- without knowing exactly what value you are attaching the units to! The resultant paragraph is a hilarious reminder of what happens when you have the wrong units. You can also choose random units, where the program will select units at random.
unit jumble screen shot
EMGame.html - This is the first version of the game I wrote for the 2000 Physics Olympics. Rules and instructions are at http://www2.hawaii.edu/~jmcfatri/EMrules.html
emgame screen shot
Game.html - this is the final version of the game which was used in the 2000 Physics Olympics. Rules ard instructions are the same as the EMGame, but the charge is of the opposite sign. Students are asked to manipulate the electric (E) and magnetic (B) fields to hit a tiny target at the top of the screen. (Note: you must close the blank window that first opens when the program starts.) 
game screen shot
PhysQuiz.html - A Jeopardy - type game, but it's not for the faint of heart! Be careful! If you get the answer really wrong, the program starts to insult you! Rules and instructions are available at QuizRules.html
phys quiz screen shot
FieldDisplay.html - this program displays the field lines and equipotential lines of any discrete charge distribution (up to 20 charges allowed)
fieldDisplay screen shot
ChromaticAberration.html - this program shows how different colored rays shine through a real lens differently.  To use the program, click and drag the white arrow around. See what happens if you add the red filter or the blue filter.

SimpleFieldMap.html - this program shows how to map a real magnetic field. Select one of the field types from the selection and drag the little compass around. Every time you drop the compass, it leaves a little arrow behind. Do this repeatedly and you end up with a map of the magnetic field.

AveDampedOscillations.html - this program is similar to the previous SpringTest.html. In this applet, students can see what happens to the total energy of the spring system (graph on the top), simultaneously with the spring animating, and also see a plot of the position as time goes by (graph on the bottom. Students can also see what happens when the damping constant is increased or decreased, by moving the slider on the bottom. To clear the plots, simply press the "restart" button.

CompareFall.html -  this simple applet shows two objects falling in the earth's gravitational field. Which one will hit the bottom first? Make a guess and then hit the start (triangle) button. You may be surprised!

Hit the stop (square) to stop the animation and you can reset the applet by pressing the start button again.

DampedSpring.html - this applet is much like AveDampedOscillations. html.  Like AveDampedOscillations, it also shows a damped spring, and has the same outputs. However, there is one main difference. In the AveDampedOscillations, I averaged the total energy of the spring system.  In this one I do not. I wrote this program to remind students that the "exponential decay" they are reading about in their text is really talking about the average energy.  Watch what happens when the true total energy is plotted!!

DragNPlot.html - this applet is designed to help students connect graphs with the motion they see. Students drag the little car around and observe the plots of its position and velocity as a function of time.  To start, press the start (triangle) button. Then click on the car and drag it around. To stop plotting, press the stop (square) button. Then you can press the start button again to reset the applet.

DrivenSpring.html - this applet behaves much the same way as SpringTest2.html. Students are allowed to choose a natural frequency of the spring, a damping constant (how much damping the water gives), and the driving frequency of the motor.  Students start the system going by clicking "apply".  The difference is that this applet also includes the transient solution. (Be wary, some results may seem strange because of this!)

ElectrostaticTest.html - as the name suggests, this is a test of the electrostatic forces. I wrote this to test the algorithm that computes the electrostatic field. Here I found that I could by accident have a charge which is not visible on the screen but still see the effect of them (there are ten + on the top and ten  - on the bottom, but only two are visible).  This bug has not yet been fixed.

Gedanken1.html - In this applet, students can place any number of charges on the screen and observe the effects of both constant forces such as the gravitational force near Earth, and the electrostatic force.

To use Gedanken1:
-Add Charges/Masses: use the add menu to add charges or masses to the screen.
Note that the charge is in uC! So make sure you make it at least 100 or so uC, or you won't see much
-Add Springs: use the Add menu. This is a bit difficult! (I am working on this!) You have to select the two objects after selecting the menu item.  If successful, a line will be drawn between the objects, indicating a spring scale.
-Add Force: add the electrostatic force and/or a constant force. (NOTE: YOU MUST DO THIS to see any forces acting on the objects, charges or not!)
-Delete: use the delete menu to delete all charges and effects
-Start: press the start (triangle) button to start animating the objects in the screen
-Stop: press the stop (square) button to stop any animating
-Investigate: press the investigate (magnifying glass) to see what the spring scales read at any time
-Strobe camera: press the camera button to show tracks like the one shown to the right (strobe camera is on by default!)


This can be duplicated by:
1) Adding a charge at (7,7) with mass 1000, velocity 0, and charge 100
2) Adding a charge at (7,1) with mass 1, x_velocity 3, y_velocity 0, and charge -100
3) Adding an electrostatic force to all objects
4) Pressing the start button

Projectile2D.html - this applet shows the side-by-side comparision of 2D and 1D projectiles. This is intended to go with a discussion of the components of the motion of 2D projectiles. Students should notice that the position in the y direction is the same for both objects. Press the start (triangle) button to start the animation.  Press the stop (square) button to stop the animation.  Press start again to reset from the beginning.

ProjectileVelComp.html - this applet shows the x component, y component, and total of the velocity vector of a projectile.  Press the start (triangle) button to start the animation.  Press the stop (square) button to stop the animation.  Press start again to reset from the beginning.
ShockAbsorber.html - this applet shows how a shock absorber behaves.  This is intended to go with a discussion of overdamping, underdamping, and critical damping. Use the slider to increase or decrease the damping term.  Press restart to reset the program.

SpringOscillations.html - this applet is a set of slides which explains how a spring works.  It shows the force and velocity of the spring at several key moments on the oscillation.  Students click "next" when they are ready to see the next slide.

SpringTest.html - as the name suggests, this was a test of the spring force that was written for Gedanken1. I have another set of spring tests in this set to test the curly springs shown in some of the other applets.  There is a bug in the spring drawing algorithm for the curly springs when more than three objects are attached, which I haven't resolved yet, thus, Gedanken1 got plain old lines to represent springs.

Starter.html - this is my test applet that starts every lesson. Small, compact, and fast, if users have problems with this program, then they know that their settings for java are not what I require.