1. http://www.sci.usq.e.../graph/Top.html
that's the website from which i got my plotting codes/classes for a plot that supposedly takes a set of data from a different calculating program (example 3 code is the one where you can load data). i'm looking at the graph code example3 and it's not obvious to me how to call up the data for the graph. is it where it says "DATA"? if the data file is called output.txt would i just substitute "output.txt" for "DATA"?
2. i've tried to make a program (see below) so that it will get input values from a .txt file and make an output file also .txt. it compiles fine etc. when i execute it it'll do it, but the resulting output.txt is empty... what am i doing wrong?
import java.io.*;
public class trial{
public static void main(String args[]){
BufferedReader in;
FileWriter out;
try{
in=new BufferedReader(new InputStreamReader(new FileInputStream("trialin.txt")));
double R = Double.parseDouble(in.readLine());
String readin = "not null";
out=new FileWriter("trialout.txt");
out.write("R" + "\r\n");
}
catch (IOException e) {
System.out.println("error");
}
}
}
3. in the following equation, i want P to be varying b/t two given constants Pmax and Pmin. how would i do that?
public double I0(double Vb, double P, double Pbath) {
return ((Pbath-P)/Vb);
}
that's it for now... wow i'm hopelessly lost... ahh.
thanks so much for everything.