the first real original Java programs that I've made that actually serve some purpose! I'm learning this language very quickly and having a blast while at it, but these are still mind-numbingly simple. Still, they may prove useful for anybody in a physics course in here.
1: Weight Calculator: measures the weight of an object provided that you give the mass. This is for the average gravitational acceleration on earth. Note, this program will only work for mass measurements in kilograms! It will, however, convert to Pounds for you at the end.
2: Initial Velocity Solver: Used to calculate the initial velocity of an object provided that you know its linear acceleration, velocity, and the change in time at the point you chose the velocity (in other words, you need to know a, v, and t). Why I did it this way, I don't know, but it does have practical uses in the field of physics. Note that the terminology in it is made for the SI system, but it will work for FPS system as well (just pretend that the m is ft., or whatever unit of length you wanna use). It's a bit buggy if you try to input letters or characters other than numbers... but why would you want to do that?
To run these programs, all you need is to have Java installed on your comp. If you can get into the CAA chatroom, then you have Java. To run them, first extract the .class files to somewhere you can find them. Then go to dos (or Unix equivalent) and browse to the directory you put them in. then, simply type in "java intVelocitySolver" to run the program (NOTE: do not put .class extension in command prompt!). Follow the instructions and have fun.
I plan to make a lot more of these simple programs for you physics people out there (several more related tothe velocity one), but it's almost 3 AM here, and considering that I have class in 9 hours I better get some sleep ^^;
So, if you could like... check these out for me and gimme questions/comments/rottenfruit, it would be appreciated!
You do not have the required permissions to view the files attached to this post.