import java.io.*;
import javax.swing.*;

class refISO17584test
{
public static void main(String arg[])
{   //refISO17584 g;
    refISO17584 g;
  String isim;
    while(true)
	{
    isim=JOptionPane.showInputDialog("soğutucu akışkan ismi :  ");
    g=new refISO17584 (isim);
	double t =Double.parseDouble(JOptionPane.showInputDialog(" t (derece C) : ")); 
    double P =Double.parseDouble(JOptionPane.showInputDialog(" P (kPa  ) : ")); 
    double v=g.v_tp(t,P);
    String s=g.r.refrigerantName+"\n";
    s+="v = "+v+" m^3/kg \n";
	s+="P = "+g.P(t,v)+" kPa\n";
	s+="M   = "+g.r.M+"\n";
	s+="u = "+g.u(t,v)+"\n";
	s+="h = "+g.h(t,v)+"\n";	

	s+="ro = "+1.0/v+"\n";	
    JOptionPane.showMessageDialog(null,s,"deneme", JOptionPane.PLAIN_MESSAGE);
    }
}
}