PSI Java app
For any of you who are too lazy to get a calculator and do teh math, I made a java app for you! Open up notepad and type or copy/pasta:
import java.util.Scanner;
/** @(#) PowerLevel.java
* App for calculation of PSI
*
* @author Ean
* @version 1.00 11/20/11
*/
//Whoever came up with the formula, good job! I take no credit for the formula, just for the app.
public class PowerLevel {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
double psi = 0.00000000005;
System.out.println('Psi = ' + psi);
double psiMoving = 0.5 * 0.0000001 * 0.00001;
System.out.println('Psi is moving 1 micrograme (@ cm per second) . So Psi moving is ' + psiMoving);
System.out.println('Enter the amount (in kilogrammes) of target weight:');
double targetWeight = in.nextDouble();
double psiNeeded = (0.5 * targetWeight * 0.00001) / 0.00000000005;
System.out.println('You will need to use ' + psiNeeded + ' of psi.');
}
}
save it as 'PowerLevel.java' with quotes. Open another window. Type:
@echo off
7 Comments
Top Comments
Ean
Everything Else...
Koori_shinobi
I want to program! I wish to major in Computer Science! *puts on scholarly face*
By Ean
BTW, if you want the CLASS version of this, then pm me.
2 years ago