BAB V KESIMPULAN DAN SARAN 5.1 Kesimpulan Pada proses validasi program perencanaan fondasi telapak, selisih paling besar dari perbandingan perhitungan manual dan program adalah 1,4473 %. Selisih perhitungan tersebut terjadi karena adanya pembulatan pada proses perhitungan manual, pada proses menentukan tebal efektif fondasi. Pembulatan pada program hanya bisa dilakukan pada akhir proses perhitungan dan dilakukan di luar program, untuk kepentingan menentukan spasi tulangan fondasi. Dari hasil perancangan aplikasi, penulis dapat membuat beberapa kesimpulan : 1. Perencanaan secara manual fondasi telapak yang berbentuk segi empat momen uniaksial dengan beban konsentris dan eksentris akan membutuhkan waktu yang relative lama. 2. Aplikasi mobile perencanaan fondasi telapak berbasis android tersebut bisa diandalkan sebagai program hitung yang akurat dan efektif. 3. Ukuran file yang kecil (± 1 MB) membuat aplikasi tersebut mudah untuk dibagikan ke perangkat lain.
46
47
5.2 Saran Aplikasi mobile perencanaan fondasi telapak berbasis android tersebut tentu saja masih jauh dari sempurna dan harus banyak mengalami pembenahan, diantaranya : 1. Aplikasi tersebut harus bisa memberi ilustrasi gambar fondasi dengan skala tertentu. 2. Membuat aplikasi tersebut bisa dijalankan di berbagai macam sistem operasi smartphone, bukan hanya android saja. 3. Memperbaiki tampilan dan fungsi pada aplikasi, sehingga menjadi lebih menarik dan mudah digunakan. 4. Membuat sistem penyimpanan data pada aplikasi, yang bisa memudahkan pengguna untuk meninjau ulang pekerjaan yang sudah pernah dilakukan. 5. Aplikasi tersebut harus bisa digunakan untuk berbagai macam bentuk fondasi telapak.
DAFTAR PUSTAKA Asroni, A. 2010. “Kolom Fondasi & Balok T Bertulang”. GRAHA ILMU: Yogyakarta Buyens, J. 2001. “Web Database Development”. Elex Media Komputindo: Jakarta Hashimi, S.Y., et al., 2010, Pro Android 2, Apress, New York Janner, S. 2009. Perancangan Basis Data. Andi: Yogyakarta. Nakazawa, K dkk. 1994. “MEKANIKA TANAH & TEKNIK FONDASI”. Pradnya Paramita: Jakarta Riyanto. 2010. “Membuat Sendiri Aplikasi Mobile GIS Platform Java ME, Blackberry & Android”. ANDI OFFSET: Yogyakarta Signorini, E., Hochmuth, P., 2010. Consumerization of the Mobile Enterprise. Boston: Yankee Group Panitia Teknik Konstruksi dan Bangunan. 2002. Perencanaan Struktur Beton Bertulang (SNI 03-2847-2002). Badan Standardisasi Nasional
48
49 Layout Home XML <ScrollView xmlns:android="http://schemas.android.com/apk/res/an droid"
android:text=" " />
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/textView2"
android:orientation="vertical"
android:layout_width="wrap_content"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_height="fill_parent"
android:layout_alignLeft="@+id/textView1"
android:gravity="center">
android:layout_below="@+id/textView1"
android:text="COBOW merupakan program perhitungan perencanaan fondasi telapak berbasis android yang dibuat untuk mempermudah melakukan proses trial and error pada perhitungan fondasi.
android:layout_height="match_parent"
android:paddingBottom="@dimen/activity_vertical_ma rgin" android:paddingLeft="@dimen/activity_horizontal_mar gin" android:paddingRight="@dimen/activity_horizontal_m argin" android:paddingTop="@dimen/activity_vertical_margi n"
Program ini membutuhkan beberapa input dengan satuan panjang meter (m), beban kilo Newton (kN),berat jenis tanah dan beton kilo Newton per meter kubik (kN/m3), kuat tekan dan tarik MegaPascal (MPa), dan diameter tulangan milimeter (mm). Acuan yang digunakan dalam perencanaan adalah SNI 03-2847-2002. " />
tools:context=".Home" > android:layout_width="wrap_content"
android:layout_alignParentLeft="true"
android:layout_height="500dp"
android:layout_height="wrap_content"
50 android:layout_alignLeft="@+id/imageView1"
import android.view.View;
android:layout_below="@+id/imageView1"
import android.widget.Button;
android:text="Untuk memulai menghitung fondasi, diperlukan beberapa input data struktur dan tanah seperti pada gambar di atas.
public class Home extends Activity {
Gambar tersebut merupakan patokan pada perhitungan program dan harus diisi secara lengkap menurut data yang ada.
protected void onCreate(Bundle savedInstanceState) {
@Override
super.onCreate(savedInstanceState); Jika hendak mengosongkan salah satu baris, gunakan nilai nol (0). " />
setContentView(R.layout.activity_home); Button Lanjut1 = (Button) findViewById(R.id.Lanjut);
Lanjut1.setOnClickListener(new View.OnClickListener() {
android:layout_width="wrap_content"
@Override
android:layout_height="wrap_content"
public void onClick(View v) {
android:layout_alignLeft="@+id/textView1" // TODO Auto-generated method stub android:layout_below="@+id/textView4" android:text=" " /> <Button
Intent intent = new Intent(v.getContext(), Home2.class); startActivity(intent);
android:id="@+id/Lanjut"
}
android:layout_width="wrap_content"
});
android:layout_height="wrap_content"
}
android:layout_alignLeft="@+id/textView1"
@Override
android:layout_alignParentBottom="true"
public boolean onCreateOptionsMenu(Menu menu) {
android:layout_alignRight="@+id/textView2" android:layout_below="@+id/textView5"
// Inflate the menu; this adds items to the action bar if it is present.
android:text="Lanjutkan" />
getMenuInflater().inflate(R.menu.home, menu);
return true; }
} Home JAVA package com.cobow;
Layout Home 2 XML
import android.app.Activity;
<ScrollView xmlns:android="http://schemas.android.com/apk/res/an droid"
import android.content.Intent; import android.os.Bundle; import android.view.Menu;
xmlns:tools="http://schemas.android.com/tools"
51 android:orientation="vertical"
maka momen tidak digunakan dan sebaiknya diisi dengan nilai nol (0), berlaku juga kebalikannya.
android:layout_width="fill_parent" " /> android:layout_height="fill_parent"
android:id="@+id/textView3"
android:layout_below="@+id/textView2" android:layout_alignLeft="@+id/imageView1" android:text="Output Perencanaan :" /> android:layout_below="@+id/textView1" android:id="@+id/textView5" android:layout_below="@+id/imageView1" <Button android:text="Pada proses input data beban, disediakan baris Pd dan Pl untuk beban hidup dan mati, dengan kombinasi beban 1.2Pd + 1.6Pl.
android:id="@+id/Input" android:layout_width="wrap_content"
Momen yang dipakai merupakan momen ultimate dengan arah sumbu x dan y. Seperti pada gambar di atas, apabila pengguna menggunakan eksentrisitas sebagai perhitungannya,
android:layout_height="wrap_content" android:layout_alignLeft="@+id/textView4"
52 android:layout_alignParentBottom="true"
// menu) {
public boolean onCreateOptionsMenu(Menu
android:layout_alignRight="@+id/textView4" android:layout_below="@+id/textView5"
// // Inflate the menu; this adds items to the action bar if it is present.
android:text="Input" />
// getMenuInflater().inflate(R.menu.home,
menu);
//
return true;
//
}
Home 2 JAVA
//
package com.cobow;
//}
import android.app.Activity;
//
import android.content.Intent; import android.os.Bundle;
Layout Input XML
import android.view.View;
<ScrollView xmlns:android="http://schemas.android.com/apk/res/an droid"
import android.widget.Button; public class Home2 extends Activity{
android:orientation="vertical" android:layout_width="fill_parent"
@Override protected void onCreate(Bundle savedInstanceState) {
android:layout_height="fill_parent" android:gravity="center">
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_home2); android:layout_height="wrap_content" Button Input = (Button) findViewById(R.id.Input); Input.setOnClickListener(new View.OnClickListener() {
android:orientation="horizontal">
@Override android:layout_height="20dip" public void onClick(View v) { android:text=""/> // TODO Auto-generated method stub //
@Override android:layout_width="fill_parent"
53 android:layout_height="wrap_content"
<EditText
android:text="Data Struktur"
android:id="@+id/textEXfond"
android:textSize="10sp"
android:layout_width="fill_parent"
android:textColor="#000000"/>
android:layout_height="wrap_content"
<EditText android:id="@+id/textXkolom" android:layout_width="fill_parent"
android:hint="ex (m)" android:inputType="numberDecimal" /> <EditText
android:layout_height="wrap_content"
android:id="@+id/textEYfond"
android:hint="x kolom (m)"
android:layout_width="fill_parent"
android:inputType="numberDecimal" />
android:layout_height="wrap_content"
<EditText android:id="@+id/textYkolom" android:layout_width="fill_parent"
android:inputType="numberDecimal" android:hint="ey (m)"/> <EditText
android:layout_height="wrap_content"
android:id="@+id/textTfond"
android:hint="y kolom (m)"
android:layout_width="fill_parent"
android:inputType="numberDecimal" />
android:layout_height="wrap_content"
<EditText android:id="@+id/textTipe" android:layout_width="fill_parent"
android:inputType="numberDecimal" android:hint="Tebal fondasi (m)"/> <EditText
android:layout_height="wrap_content"
android:id="@+id/textFc"
android:hint="tipe kolom 20,30,40"
android:layout_width="fill_parent"
android:inputType="numberDecimal" />
android:layout_height="wrap_content"
<EditText android:id="@+id/textXfond" android:layout_width="fill_parent"
android:inputType="numberDecimal" android:hint="fc' (MPa)"/> <EditText
android:layout_height="wrap_content"
android:id="@+id/textFy"
android:hint="X fondasi (m)"
android:layout_width="fill_parent"
android:inputType="numberDecimal" />
android:layout_height="wrap_content"
<EditText android:id="@+id/textYfond" android:layout_width="fill_parent"
android:inputType="numberDecimal" android:hint="fy (MPa)"/> <EditText
android:layout_height="wrap_content"
android:id="@+id/textBesi"
android:inputType="numberDecimal"
android:layout_width="fill_parent"
android:hint="Y fondasi (m)"/>
android:layout_height="wrap_content"
54 android:inputType="numberDecimal"
android:inputType="numberDecimal"
android:hint="diameter"/>
android:hint="tebal tanah di atas fondasi (m)"/>
<EditText
android:id="@+id/textBjbeton"
android:layout_width="fill_parent"
android:layout_width="fill_parent"
android:layout_height="20dip"
android:layout_height="wrap_content"
android:text=""/>
android:inputType="numberDecimal" android:hint="bj beton (KN/m3)"/>
android:layout_width="fill_parent"
android:text="Data Beban"
android:layout_height="20dip"
android:textSize="10sp"
android:text=""/>
android:textColor="#000000"/>
<EditText
android:layout_width="fill_parent"
android:id="@+id/textPd"
android:layout_height="wrap_content"
android:layout_width="fill_parent"
android:text="Data Tanah"
android:layout_height="wrap_content"
android:textSize="10sp"
android:hint="Dead load (KN)"
android:textColor="#000000"/>
android:inputType="numberDecimal" />
<EditText
<EditText
android:id="@+id/textDdt"
android:id="@+id/textPl"
android:layout_width="fill_parent"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_height="wrap_content"
android:inputType="numberDecimal"
android:hint="Live load (KN)"
android:hint="daya dukung tanah (KN/m2)"/>
android:inputType="numberDecimal" />
<EditText
<EditText
android:id="@+id/textBerattanah"
android:id="@+id/textMx"
android:layout_width="fill_parent"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_height="wrap_content"
android:inputType="numberDecimal"
android:inputType="numberDecimal"
android:hint="berat tanah (KN/m3)"/>
android:hint="momen x (KNm)"/>
<EditText
<EditText
android:id="@+id/textHa"
android:id="@+id/textMy"
android:layout_width="fill_parent"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_height="wrap_content"
55 android:inputType="numberDecimal"
// double D = Double.parseDouble(dia.getText().toString());
android:hint="momen y (KNm)"/>
// double xf = Double.parseDouble(Xf.getText().toString()); // double yf = Double.parseDouble(Yf.getText().toString());
android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content"
// double Pd = Double.parseDouble(pd.getText().toString()); // double Pl = Double.parseDouble(pl.getText().toString());
android:gravity="center" android:layout_marginLeft="39sp" android:layout_marginRight="37sp"> <Button android:id="@+id/btnHitung" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="HITUNG"/>
// double Mx = Double.parseDouble(mx.getText().toString()); // double My = Double.parseDouble(my.getText().toString()); // double Gt = Double.parseDouble(gt.getText().toString()); // double Ht = Double.parseDouble(ht.getText().toString()); // double tf = Double.parseDouble(Tf.getText().toString()); // double Gc = Double.parseDouble(gc.getText().toString()); // double ex = Double.parseDouble(Ex.getText().toString()); // double ey = Double.parseDouble(Ey.getText().toString());
Input JAVA package com.cobow; import java.text.DecimalFormat; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.widget.Button;
// double DDT = Double.parseDouble(ddt.getText().toString()); // double Fc = Double.parseDouble(fc.getText().toString()); // double XK = Double.parseDouble(xk.getText().toString()); // double YK = Double.parseDouble(yk.getText().toString()); // double Ti = Double.parseDouble(ti.getText().toString());
import android.widget.EditText;
// double Fy = Double.parseDouble(fy.getText().toString());
public class Input extends Activity{
@Override
EditText xk, yk, ti, pd, pl, mx, my, Tf, ht, gt, gc, ddt, dia, Xf, Yf, Ex, Ey, fc, fy;
protected void onCreate(Bundle savedInstanceState) {
String hasil; Button hitung;
// TODO Auto-generated method stub super.onCreate(savedInstanceState); setContentView(R.layout.layout_input);
56 xk = (EditText) findViewById(R.id.textXkolom);
onClick(View v) {
yk = (EditText) findViewById(R.id.textYkolom);
Auto-generated method stub
ti = (EditText) findViewById(R.id.textTipe);
public void
// TODO
Bundle bun = new Bundle(); bun.putString("sigma", hitungSigma());
Xf = (EditText) findViewById(R.id.textXfond);
bun.putString("sigmaexover", hitungSigmaexover());
Yf = (EditText) findViewById(R.id.textYfond);
bun.putString("sigmaexkurang", hitungSigmaexkurang());
Ex = (EditText) findViewById(R.id.textEXfond);
bun.putString("sigmamin", hitungSigmamin());
Ey = (EditText) findViewById(R.id.textEYfond); Tf = (EditText) findViewById(R.id.textTfond);
bun.putString("sigmaexovermin", hitungSigmaexovermin()); bun.putString("sigmaexkurangmin", hitungSigmaexkurangmin()); // bun.putDouble("ddt", DDT);
fc = (EditText) findViewById(R.id.textFc); fy = (EditText) findViewById(R.id.textFy); dia = (EditText) findViewById(R.id.textBesi);
bun.putString("ddt", hitungDdt());
bun.putString("vcx", hitungVcx()); bun.putString("vux", hitungVux()); bun.putString("vuxexs", hitungVuxexs());
gc = (EditText) findViewById(R.id.textBjbeton); ddt = (EditText) findViewById(R.id.textDdt);
bun.putString("vuxover", hitungVuxover()); bun.putString("vcy", hitungVcy()); bun.putString("vuy", hitungVuy());
gt = (EditText) findViewById(R.id.textBerattanah); ht = (EditText) findViewById(R.id.textHa); pd = (EditText) findViewById(R.id.textPd); pl = (EditText) findViewById(R.id.textPl); mx = (EditText) findViewById(R.id.textMx); my = (EditText) findViewById(R.id.textMy); //my.setTe
bun.putString("vuyexs", hitungVuyexs()); bun.putString("vuyover", hitungVuyover()); bun.putString("vc_2", hitungVc_2()); bun.putString("vu_2", hitungVu_2()); bun.putString("vu_2exs", hitungVu_2exs()); bun.putString("vu_2over", hitungVu_2exsover()); bun.putString("tul_x_long", hitungTul_x_long()); bun.putString("tul_y_short", hitungTul_y_short());
hitung = (Button) findViewById(R.id.btnHitung);
bun.putString("tul_x_short", hitungTul_x_short());
hitung.setOnClickListener(new View.OnClickListener() {
bun.putString("tul_y_long", hitungTul_y_long());
@Override
57
bun.putString("diameter", tampil_diameter());
}
bun.putString("ex", tampil_ex());
public String tampil_ey(){
bun.putString("ey", tampil_ey());
try{
bun.putString("xf", tampil_xf());
double ey = Double.parseDouble(Ey.getText().toString());
bun.putString("yf", tampil_yf()); hasil = (String.valueOf(ey)); Intent intent = new Intent(v.getContext(), Output.class);
return hasil; } catch (Exception e) {
intent.putExtras(bun);
e.printStackTrace(); }
startActivity(intent); return ""; }); } } public String tampil_xf(){ public String tampil_diameter(){ try{ try{ double D = Double.parseDouble(dia.getText().toString());
double xf = Double.parseDouble(Xf.getText().toString()); hasil =
hasil = (String.valueOf(D));
(String.valueOf(xf));
return hasil;
return hasil;
} catch (Exception e) {
} catch (Exception e) {
e.printStackTrace();
e.printStackTrace();
}
}
return "";
return "";
}
}
public String tampil_ex(){
public String tampil_yf(){
try{
try{
double ex = Double.parseDouble(Ex.getText().toString());
double yf = Double.parseDouble(Yf.getText().toString());
hasil = (String.valueOf(ex));
hasil = (String.valueOf(yf));
return hasil;
return hasil;
} catch (Exception e) {
} catch (Exception e) {
e.printStackTrace();
e.printStackTrace();
}
}
return "";
return "";
58 }
public String hitungSigmaexkurang() {
public String hitungSigma() { try {
try { double xf = Double.parseDouble(Xf.getText().toString());
double Puk = (double) (1.2*Pd + 1.6*Pl); DecimalFormat df = new DecimalFormat("###.####");
double yf = Double.parseDouble(Yf.getText().toString());
hasil =
double Pd = Double.parseDouble(pd.getText().toString());
return hasil;
double Pl = Double.parseDouble(pl.getText().toString());
(String.valueOf(df.format(Puk)));
} catch (Exception e) { e.printStackTrace();
double Gt = Double.parseDouble(gt.getText().toString()); double Ht = Double.parseDouble(ht.getText().toString());
} return "";
double tf = Double.parseDouble(Tf.getText().toString());
} public String hitungSigmaexover() { try { double xf = Double.parseDouble(Xf.getText().toString()); double yf = Double.parseDouble(Yf.getText().toString());
double Gc = Double.parseDouble(gc.getText().toString()); double ex = Double.parseDouble(Ex.getText().toString()); double ey = Double.parseDouble(Ey.getText().toString());
double Pd = Double.parseDouble(pd.getText().toString());
double sigmaexskurang = (double) ((1.2*Pd + 1.6*Pl)/(xf*yf))*(1+((6*ex)/(xf))+((6*ey)/(yf)))+((Ht* Gt)+(tf*Gc));
double Pl = Double.parseDouble(pl.getText().toString());
DecimalFormat df = new DecimalFormat("###.####");
double ex = Double.parseDouble(Ex.getText().toString());
hasil = (String.valueOf(df.format(sigmaexskurang))); return hasil;
double sigmaexover = (double) (2/3)*((1.2*Pd + 1.6*Pl)/((0.5*xf-ex)*yf));
} catch (Exception e) { e.printStackTrace();
DecimalFormat df = new DecimalFormat("###.####"); } hasil = (String.valueOf(df.format(sigmaexover))); return hasil; } catch (Exception e) { e.printStackTrace(); }
return ""; } public String hitungSigmamin() { try { double xf = Double.parseDouble(Xf.getText().toString());
return ""; }
double yf = Double.parseDouble(Yf.getText().toString()); double Pd = Double.parseDouble(pd.getText().toString());
59 double Pl = Double.parseDouble(pl.getText().toString());
double xf = Double.parseDouble(Xf.getText().toString());
double Mx = Double.parseDouble(mx.getText().toString());
double yf = Double.parseDouble(Yf.getText().toString());
double My = Double.parseDouble(my.getText().toString());
double Pd = Double.parseDouble(pd.getText().toString());
double Gt = Double.parseDouble(gt.getText().toString());
double Pl = Double.parseDouble(pl.getText().toString());
double Ht = Double.parseDouble(ht.getText().toString());
double Gt = Double.parseDouble(gt.getText().toString());
double tf = Double.parseDouble(Tf.getText().toString());
double Ht = Double.parseDouble(ht.getText().toString());
double Gc = Double.parseDouble(gc.getText().toString());
double tf = Double.parseDouble(Tf.getText().toString());
double sigmamin = (double) ((1.2*Pd + 1.6*Pl)/(xf*yf)) ((Mx)/((yf*yf*xf/6))) - ((My)/((yf*xf*xf/6))) + ((Ht*Gt)+(tf*Gc));
double Gc = Double.parseDouble(gc.getText().toString());
DecimalFormat df = new DecimalFormat("###.####");
double ex = Double.parseDouble(Ex.getText().toString()); double ey = Double.parseDouble(Ey.getText().toString());
hasil = (String.valueOf(df.format(sigmamin))); return hasil;
double sigmaexskurangmin = (double) ((1.2*Pd + 1.6*Pl)/(xf*yf))*(1-((6*ex)/(xf))((6*ey)/(yf)))+((Ht*Gt)+(tf*Gc));
} catch (Exception e) { DecimalFormat df = new DecimalFormat("###.####"); e.printStackTrace(); hasil = (String.valueOf(df.format(sigmaexskurangmin)));
}
return hasil;
return "";
} catch (Exception e) {
}
e.printStackTrace();
public String hitungSigmaexovermin() { }
try {
return "";
double sigmaexovermin = (double) 0; DecimalFormat df = new DecimalFormat("###.####"); hasil = (String.valueOf(df.format(sigmaexovermin))); return hasil; } catch (Exception e) {
} public String hitungDdt() { try { double Fc = Double.parseDouble(fc.getText().toString());
e.printStackTrace(); } return "";
double XK = Double.parseDouble(xk.getText().toString()); double YK = Double.parseDouble(yk.getText().toString());
} double Pu = (double) public String hitungSigmaexkurangmin() { try {
0.7*0.85*Fc*XK*YK*1000;
60 } return ""; DecimalFormat df = new DecimalFormat("###.####");
} public String hitungVux() {
hasil = (String.valueOf(df.format(Pu)));
try { return hasil;
double XK = Double.parseDouble(xk.getText().toString());
} catch (Exception e) { e.printStackTrace(); }
double xf = Double.parseDouble(Xf.getText().toString()); double yf = Double.parseDouble(Yf.getText().toString());
return ""; double Pd = Double.parseDouble(pd.getText().toString());
}
double Pl = Double.parseDouble(pl.getText().toString()); public String hitungVcx() { double Mx = Double.parseDouble(mx.getText().toString());
try { double D = Double.parseDouble(dia.getText().toString());
double My = Double.parseDouble(my.getText().toString());
double yf = Double.parseDouble(Yf.getText().toString());
double Gt = Double.parseDouble(gt.getText().toString());
double tf = Double.parseDouble(Tf.getText().toString());
double Ht = Double.parseDouble(ht.getText().toString());
double Fc = Double.parseDouble(fc.getText().toString());
double tf = Double.parseDouble(Tf.getText().toString());
double ds = (double)
double Gc = Double.parseDouble(gc.getText().toString());
double d = (double)
double sigma_min = (double) (1.2*Pd + 1.6*Pl) / (xf*yf) - (Mx)/(yf*yf*xf/6) - (My)/(yf*xf*xf/6) + ((Ht*Gt)+(tf*Gc));
(75+(D/2));
(1000 * tf - ds); double Vc1 = (double) (Math.sqrt(Fc)) / 6 * 1000 * yf * d / 1000;
double D = Double.parseDouble(dia.getText().toString());
double piVc = double ds = (double)
(double) Vc1*0.75; (75 + (D/2)); // format decimal
double d = (double) DecimalFormat df =
(1000 * tf - ds);
new DecimalFormat("###.##"); // format decimal hasil = (String.valueOf(df.format(piVc))); return hasil; } catch (Exception e) { e.printStackTrace();
double a = (double) ((1000*xf / 2) - (1000*XK / 2) - d) / 1000; double sigma_max = (double) (1.2*Pd + 1.6*Pl) / (xf*yf) + (Mx)/(yf*yf*xf/6) + (My)/(yf*xf*xf/6) + ((Ht*Gt)+(tf*Gc));
61 double sigma_a = (double) sigma_min + (((xf-a)*(sigma_maxsigma_min))/xf);
double sigma_min = (double) ((1.2*Pd + 1.6*Pl)/(xf*yf))*(1-((6*ex)/(xf))((6*ey)/(yf)))+((Ht*Gt)+(tf*Gc));
double Vu1 = (double) (a * yf * ((sigma_max + sigma_a) / 2));
(75 + (D/2));
DecimalFormat df = new DecimalFormat("###.####");
(1000 * tf - ds);
hasil = (String.valueOf(df.format(Vu1)));
double aa = (double) ((1000*xf/2) - (ex*1000) - (1000*XK/2) - d) / 1000;
return hasil;
double ds = (double)
double d = (double)
double a = (double) ((1000*xf / 2) + (ex*1000) - (1000*XK / 2) - d) / 1000;
} catch (Exception e) { e.printStackTrace(); } return ""; } public String hitungVuxexs() { try {
double sigma_max = (double) ((1.2*Pd + 1.6*Pl)/(xf*yf))*(1+((6*ex)/(xf))+((6*ey)/(yf)))+((Ht* Gt)+(tf*Gc)); double sigma_aa = (double) sigma_min + (((xf-aa)*(sigma_maxsigma_min))/xf); double sigma_a = (double) sigma_min + (((a)*(sigma_maxsigma_min))/xf); // a dari kiri ke tepi kol ,,,, aa dari
double D = Double.parseDouble(dia.getText().toString());
kanan ke tepi kol
double xf = Double.parseDouble(Xf.getText().toString());
double Vu1 = (double) (a * yf * ((sigma_a + sigma_min) / 2));
double yf = Double.parseDouble(Yf.getText().toString());
double Vu12 = (double) (aa * yf * ((sigma_max + sigma_aa) / 2));
double Pd = Double.parseDouble(pd.getText().toString()); double Pl = Double.parseDouble(pl.getText().toString()); double Gt = Double.parseDouble(gt.getText().toString());
double V = Vu1; if (V < Vu12) { V = Vu12; } else if (V > Vu12)
double Ht = Double.parseDouble(ht.getText().toString()); double tf = Double.parseDouble(Tf.getText().toString());
{ V = Vu1; }
DecimalFormat df = new DecimalFormat("###.####");
double Gc = Double.parseDouble(gc.getText().toString()); double ex = Double.parseDouble(Ex.getText().toString());
hasil = (String.valueOf(df.format(V))); return hasil;
double ey = Double.parseDouble(Ey.getText().toString());
} catch (Exception e) { double XK = Double.parseDouble(xk.getText().toString());
e.printStackTrace(); } return "";
62 } public String hitungVuxover() { try {
if (V < Vu11)
double D = Double.parseDouble(dia.getText().toString());
{ V = Vu11; } else if (V > Vu11)
double xf = Double.parseDouble(Xf.getText().toString());
{ V = Vu1; }
double yf = Double.parseDouble(Yf.getText().toString());
DecimalFormat df = new DecimalFormat("###.####");
double Pd = Double.parseDouble(pd.getText().toString());
(String.valueOf(df.format(V)));
hasil =
double Pl = Double.parseDouble(pl.getText().toString());
return hasil; } catch (Exception e) {
double tf = Double.parseDouble(Tf.getText().toString());
e.printStackTrace();
double ex = Double.parseDouble(Ex.getText().toString());
} return "";
double XK = Double.parseDouble(xk.getText().toString()); double sigma_min = (double) 0;
} public String hitungVcy() { try {
double ds = (double) (75 + (D/2)); double d = (double) (1000 * tf - ds); double x = (double) 3*(0.5*xf - ex); double aa = (double) ((1000*xf/2) - (ex*1000) - (1000*XK/2) - d) / 1000; double a = (double) ((1000*x) - (aa*1000) - (1000*XK) - (2*d)) / 1000; double sigma_max = (double) (2/3)*((1.2*Pd + 1.6*Pl)/((0.5*xf-ex)*yf)); double sigma_a = (double) sigma_min + (((x-aa)*(sigma_maxsigma_min))/x); double sigma_aa = (double) sigma_min + (((a)*(sigma_maxsigma_min))/x); double Vu1 = (double) (a * yf * ((sigma_a + sigma_min) / 2)); double Vu11 = (double) (aa * yf * ((sigma_max + sigma_aa) / 2));
double V = Vu1;
double D = Double.parseDouble(dia.getText().toString()); double xf = Double.parseDouble(Xf.getText().toString()); double tf = Double.parseDouble(Tf.getText().toString()); double Fc = Double.parseDouble(fc.getText().toString()); double ds = (double) (75+(D/2)); double d = (double) (1000 * tf - ds); double Vc1 = (double) (Math.sqrt(Fc)) / 6 * 1000 * xf * d / 1000; double piVc = (double) Vc1*0.75; // format decimal DecimalFormat df = new DecimalFormat("###.##"); // format decimal hasil = (String.valueOf(df.format(piVc)));
63 return hasil; } catch (Exception e) {
double sigma_max = (double) (1.2*Pd + 1.6*Pl) / (xf*yf) + (Mx)/(yf*yf*xf/6) + (My)/(yf*xf*xf/6) + ((Ht*Gt)+(tf*Gc));
e.printStackTrace(); double sigma_a = (double) sigma_min + (((yf-a)*(sigma_maxsigma_min))/yf);
} return "";
double Vu1 = (double) (a * xf * ((sigma_max + sigma_a) / 2));
}
DecimalFormat df = new DecimalFormat("###.####");
public String hitungVuy() { try {
hasil = (String.valueOf(df.format(Vu1))); return hasil;
double D = Double.parseDouble(dia.getText().toString());
} catch (Exception e) {
double xf = Double.parseDouble(Xf.getText().toString());
e.printStackTrace(); }
double yf = Double.parseDouble(Yf.getText().toString());
return ""; double Pd = Double.parseDouble(pd.getText().toString()); double Pl = Double.parseDouble(pl.getText().toString());
} public String hitungVuyexs() { try {
double Mx = Double.parseDouble(mx.getText().toString()); double My = Double.parseDouble(my.getText().toString()); double Gt = Double.parseDouble(gt.getText().toString()); double Ht = Double.parseDouble(ht.getText().toString()); double tf = Double.parseDouble(Tf.getText().toString()); double Gc = Double.parseDouble(gc.getText().toString()); double YK = Double.parseDouble(yk.getText().toString()); double sigma_min = (double) (1.2*Pd + 1.6*Pl) / (xf*yf) - (Mx)/(yf*yf*xf/6) - (My)/(yf*xf*xf/6) + ((Ht*Gt)+(tf*Gc));
double D = Double.parseDouble(dia.getText().toString()); double xf = Double.parseDouble(Xf.getText().toString()); double yf = Double.parseDouble(Yf.getText().toString()); double Pd = Double.parseDouble(pd.getText().toString()); double Pl = Double.parseDouble(pl.getText().toString()); double Gt = Double.parseDouble(gt.getText().toString()); double Ht = Double.parseDouble(ht.getText().toString()); double tf = Double.parseDouble(Tf.getText().toString());
double ds = (double)
double Gc = Double.parseDouble(gc.getText().toString());
double d = (double) (1000 * tf - ds);
double ex = Double.parseDouble(Ex.getText().toString());
double a = (double) ((1000*yf / 2) - (1000*YK / 2) - d) / 1000;
double ey = Double.parseDouble(Ey.getText().toString());
(75 + (D/2));
64 double YK = Double.parseDouble(yk.getText().toString());
public String hitungVuyover() { try {
double sigma_min = (double) ((1.2*Pd + 1.6*Pl)/(xf*yf))*(1-((6*ex)/(xf))((6*ey)/(yf)))+((Ht*Gt)+(tf*Gc));
double D = Double.parseDouble(dia.getText().toString());
double ds = (double)
double xf = Double.parseDouble(Xf.getText().toString());
double d = (double) (1000 * tf - ds);
double yf = Double.parseDouble(Yf.getText().toString());
double aa = (double) ((1000*yf/2) - (ey*1000) - (1000*YK/2) - d) / 1000;
double Pd = Double.parseDouble(pd.getText().toString());
double a = (double) ((1000*yf / 2) + (ey*1000) - (1000*YK / 2) - d) / 1000;
double Pl = Double.parseDouble(pl.getText().toString());
double sigma_max = (double) ((1.2*Pd + 1.6*Pl)/(xf*yf))*(1+((6*ex)/(xf))+((6*ey)/(yf)))+((Ht* Gt)+(tf*Gc));
// double Gt = Double.parseDouble(gt.getText().toString());
(75 + (D/2));
double sigma_aa = (double) sigma_min + (((yf-aa)*(sigma_maxsigma_min))/yf); double sigma_a = (double) sigma_min + (((a)*(sigma_maxsigma_min))/yf); double Vu1 = (double) (a * xf * ((sigma_min + sigma_a) / 2)); double Vu12 = (double) (aa * xf * ((sigma_max + sigma_aa) / 2)); double V = Vu1; if (V < Vu12)
// double Ht = Double.parseDouble(ht.getText().toString()); double tf = Double.parseDouble(Tf.getText().toString()); // double Gc = Double.parseDouble(gc.getText().toString()); // double ex = Double.parseDouble(Ex.getText().toString()); double ey = Double.parseDouble(Ey.getText().toString()); double YK = Double.parseDouble(yk.getText().toString()); double sigma_min = (double) 0;
{ V = Vu12; }
double ds = (double) (75 + (D/2));
else if (V > Vu12) double d = (double) { V = Vu1; }
(1000 * tf - ds); double y = (double)
DecimalFormat df = new DecimalFormat("###.####");
3*(0.5*yf - ey);
hasil =
double aa = (double) ((1000*yf/2) - (ey*1000) - (1000*YK/2) - d) / 1000;
return hasil;
double a = (double) ((1000*y) - (aa*1000) - (1000*YK) - (2*d)) / 1000;
(String.valueOf(df.format(V)));
} catch (Exception e) {
double sigma_max = (double) (2/3)*((1.2*Pd + 1.6*Pl)/((0.5*yf-ey)*xf));
e.printStackTrace(); }
double sigma_a = (double) sigma_min + (((y-a)*(sigma_maxsigma_min))/y);
return ""; }
double sigma_aa = (double) sigma_min + (((aa)*(sigma_maxsigma_min))/y);
65 double Ti = Double.parseDouble(ti.getText().toString()); double Vu1 = (double) (a * xf * ((sigma_min + sigma_a) / 2)); double Vu11 = (double) (aa * xf * ((sigma_max + sigma_aa) / 2));
double XKol = (double) 1000*XK;
double V = Vu1;
double YKol = (double) 1000*YK;
if (V < Vu11) double ds = (double) { V = Vu11; }
(75+(D/2)); double d = (double)
else if (V > Vu11) (1000*tf-ds); { V = Vu1; }
//jarak dari titik pusat DecimalFormat df = new DecimalFormat("###.####");
fondsai
hasil =
double AB = (double) ((1000*ex) + (1000*0.5*XK) + (0.5*d));
return hasil;
double CD = (double) ((1000*ey) + (1000*0.5*YK) + (0.5*d));
(String.valueOf(df.format(V)));
//selisih jarak dengan
} catch (Exception e) { setengah fondasi e.printStackTrace();
double XX = (double) } return "";
AB - (1000*0.5*xf); double YY = (double) CD - (1000*0.5*yf);
}
//setengah bentang
public String hitungVc_2() { try { double D = Double.parseDouble(dia.getText().toString()); double xf = Double.parseDouble(Xf.getText().toString()); double yf = Double.parseDouble(Yf.getText().toString()); double tf = Double.parseDouble(Tf.getText().toString()); double ex = Double.parseDouble(Ex.getText().toString()); double ey = Double.parseDouble(Ey.getText().toString()); double Fc = Double.parseDouble(fc.getText().toString()); double XK = Double.parseDouble(xk.getText().toString()); double YK = Double.parseDouble(yk.getText().toString());
fondasi double XXx = (double) (1000*0.5*xf); double YYy = (double) (1000*0.5*yf); //keliling kritis geser 2 arah kasus double c1 = (double) (XKol+d)+(XKol+d)+(YKol+d)+(YKol+d); double c2 = (double) (XKol+d-XX)+(XKol+d-XX)+(YKol+d)+(YKol+d); double c3 = (double) (XKol+d)+(XKol+d)+(YKol+d-YY)+(YKol+d-YY); double c4 = (double) (XKol+d-XX)+(XKol+d-XX)+(YKol+dYY)+(YKol+d-YY); double bo = c1; if (AB <= (XXx) && CD <= (YYy)) { bo = c1; }
66 else if (AB > (XXx) && CD <=
return hasil;
(YYy)) } catch (Exception e) { { bo = c2; } e.printStackTrace(); else if (AB <= (XXx) && CD > (YYy))
} { bo = c3; }
return "";
else if (AB > (XXx) && CD > (YYy)) { bo = c4; }
} public String hitungVu_2() { try {
double bet1 = (double) XK / YK;
double D = Double.parseDouble(dia.getText().toString()); double bet2 =
(double) YK / XK;
double xf = Double.parseDouble(Xf.getText().toString()); double betaC = bet1; double yf = Double.parseDouble(Yf.getText().toString()); if (XK > YK) {betaC = bet1;} else if (XK < YK)
double Pd = Double.parseDouble(pd.getText().toString()); double Pl = Double.parseDouble(pl.getText().toString());
{betaC = bet2;} double Mx = Double.parseDouble(mx.getText().toString()); double Vc1 = (double) 0.75 * (1 + 2 / betaC) * (Math.sqrt(Fc)) * bo * d / 6000; double Vc2 = (double) 0.75 * (2 + Ti*d/bo) * (Math.sqrt(Fc)) * bo * d /12000; double Vc3 = (double) 0.75 * 1/3 *( Math.sqrt(Fc)) * bo * d / 1000; double V = Vc1; if (V < Vc2 && V < Vc3)
double My = Double.parseDouble(my.getText().toString()); double Gt = Double.parseDouble(gt.getText().toString()); double Ht = Double.parseDouble(ht.getText().toString()); double tf = Double.parseDouble(Tf.getText().toString()); double Gc = Double.parseDouble(gc.getText().toString());
{ V = Vc1; } else if (V > Vc2 && Vc2 < Vc3) { V = Vc2; }
double XK = Double.parseDouble(xk.getText().toString()); double YK = Double.parseDouble(yk.getText().toString());
else if (V > Vc3 && Vc3 < Vc2) double sigma_min = (double) (1.2*Pd + 1.6*Pl) / (xf*yf) - (Mx)/(yf*xf*xf/6) - (My)/(yf*yf*xf/6) + ((Ht*Gt)+(tf*Gc));
{ V = Vc3; } DecimalFormat df = new DecimalFormat("###.####"); // dipilih yang paling kecil dari v1 v2 v3
double sigma_max = (double) (1.2*Pd + 1.6*Pl) / (xf*yf) + (Mx)/(yf*xf*xf/6) + (My)/(yf*yf*xf/6) + ((Ht*Gt)+(tf*Gc)); double ds = (double)
hasil = (String.valueOf(df.format(V)));
(75+(D/2));
67 double d = (double) (1000*tf-ds); double ds = (double) double Vu2 = (double) (yf * xf - (YK + (d/1000)) * (XK + (d/1000))) * ((sigma_max + sigma_min)/2);
(75+(D/2)); double d = (double) (1000*tf-ds)/1000;
DecimalFormat df = new DecimalFormat("###.####");
double AB = (double) (ex + (0.5*XK) + (0.5*d));
hasil = (String.valueOf(df.format(Vu2)));
double CD = (double) (ey + (0.5*YK) + (0.5*d));
return hasil; double XX = (double) } catch (Exception e) {
AB - (0.5*xf);
e.printStackTrace();
double YY = (double) CD - (0.5*yf);
} double Lo = XX; return ""; if (AB <= xf && CD <= yf)
}
{ Lo =
public String hitungVu_2exs() { (XK+d)*(YK+d); } try {
else if (AB > xf && CD <= yf) double D = Double.parseDouble(dia.getText().toString());
{ Lo = (XK+dXX)*(YK+d); }
double xf = Double.parseDouble(Xf.getText().toString()); double yf = Double.parseDouble(Yf.getText().toString()); double Pd = Double.parseDouble(pd.getText().toString()); double Pl = Double.parseDouble(pl.getText().toString()); double Gt = Double.parseDouble(gt.getText().toString());
else if (AB <= xf && CD > yf) { Lo = (XK+d)*(YK+d-YY); }
else if (AB > xf && CD > yf) { Lo = (XK+d-XX)*(YK+d-YY); } double sigma_min = (double) ((1.2*Pd + 1.6*Pl)/(xf*yf))*(1-((6*ex)/(xf))((6*ey)/(yf)))+((Ht*Gt)+(tf*Gc));
double Ht = Double.parseDouble(ht.getText().toString());
double sigma_max = (double) ((1.2*Pd + 1.6*Pl)/(xf*yf))*(1+((6*ex)/(xf))+((6*ey)/(yf)))+((Ht* Gt)+(tf*Gc));
double tf = Double.parseDouble(Tf.getText().toString());
double Vu2 = (double) (yf * xf - Lo) * ((sigma_max + sigma_min)/2);
double Gc = Double.parseDouble(gc.getText().toString());
DecimalFormat df = new DecimalFormat("###.####");
double ex = Double.parseDouble(Ex.getText().toString());
hasil = (String.valueOf(df.format(Vu2))); return hasil;
double ey = Double.parseDouble(Ey.getText().toString());
} catch (Exception e) { double XK = Double.parseDouble(xk.getText().toString()); double YK = Double.parseDouble(yk.getText().toString());
e.printStackTrace(); } return "";
68 }
{ Lo = (XK+d)*(YK+d-YY); }
public String hitungVu_2exsover() { else if (AB > xf && CD > yf) try { { Lo = (XK+d-XX)*(YK+d-YY); } double D = Double.parseDouble(dia.getText().toString()); double sigma_min = double xf = Double.parseDouble(Xf.getText().toString()); double yf = Double.parseDouble(Yf.getText().toString()); double Pd = Double.parseDouble(pd.getText().toString()); double Pl = Double.parseDouble(pl.getText().toString()); double tf = Double.parseDouble(Tf.getText().toString());
(double) 0; double sigma_max = (double) (2/3)*((1.2*Pd + 1.6*Pl)/((0.5*xf-ex)*yf)); double Vu2 = (double) (yf * xf - Lo) * ((sigma_max + sigma_min)/2); DecimalFormat df = new DecimalFormat("###.####"); hasil = (String.valueOf(df.format(Vu2))); return hasil;
double ex = Double.parseDouble(Ex.getText().toString());
} catch (Exception e) {
double ey = Double.parseDouble(Ey.getText().toString());
e.printStackTrace(); }
double XK = Double.parseDouble(xk.getText().toString()); double YK = Double.parseDouble(yk.getText().toString());
return ""; } public String hitungTul_x_long() {
double ds = (double) (75+(D/2));
try { double d = (double)
double D = Double.parseDouble(dia.getText().toString());
double AB = (double)
double xf = Double.parseDouble(Xf.getText().toString());
double CD = (double)
double yf = Double.parseDouble(Yf.getText().toString());
double XX = (double)
double Pd = Double.parseDouble(pd.getText().toString());
double YY = (double)
double Pl = Double.parseDouble(pl.getText().toString());
double Lo = XX;
double Mx = Double.parseDouble(mx.getText().toString());
(1000*tf-ds)/1000;
(ex + (0.5*XK) + (0.5*d));
(ey + (0.5*YK) + (0.5*d));
AB - (0.5*xf);
CD - (0.5*yf);
if (AB <= xf && CD <= yf)
double My = Double.parseDouble(my.getText().toString()); { Lo =
(XK+d)*(YK+d); }
double Gt = Double.parseDouble(gt.getText().toString());
else if (AB > xf && CD <= yf) { Lo = (XK+d-
double Ht = Double.parseDouble(ht.getText().toString());
XX)*(YK+d); } else if (AB <= xf && CD > yf)
double tf = Double.parseDouble(Tf.getText().toString());
69 double Gc = Double.parseDouble(gc.getText().toString()); else if (ex > (xf/6) && ey > (yf/6)) double ex = Double.parseDouble(Ex.getText().toString());
{ sigma_max = sigma_maxover; }
double ey = Double.parseDouble(Ey.getText().toString()); double Fc = Double.parseDouble(fc.getText().toString());
else if (ex > (xf/6) && ey == 0) { sigma_max = sigma_maxover; }
double XK = Double.parseDouble(xk.getText().toString());
else if (ex == 0 && ey > (yf/6)) { sigma_max =
double Fy = Double.parseDouble(fy.getText().toString());
sigma_maxover; } else if (ex > (xf/6) && ey <= (yf/6))
double sigma_minover = (double) 0;
{ sigma_max = sigma_maxover; }
double sigma_maxover = (double) (2/3)*((1.2*Pd + 1.6*Pl)/((0.5*xf-ex)*yf));
else if (ex <= (xf/6) && ey > (yf/6)) { sigma_max = sigma_maxover; }
double sigma_maxexs = (double) ((1.2*Pd + 1.6*Pl)/(xf*yf))*(1+((6*ex)/(xf))+((6*ey)/(yf)))+((Ht* Gt)+(tf*Gc)); double sigma_minexs = (double) ((1.2*Pd + 1.6*Pl)/(xf*yf))*(1-((6*ex)/(xf))((6*ey)/(yf)))+((Ht*Gt)+(tf*Gc)); double sigma_mina = (double) (1.2*Pd + 1.6*Pl) / (xf*yf) - (Mx)/(yf*xf*xf/6) - (My)/(yf*yf*xf/6) + ((Ht*Gt)+(tf*Gc)); double sigma_maxa = (double) (1.2*Pd + 1.6*Pl) / (xf*yf) + (Mx)/(yf*xf*xf/6) + (My)/(yf*yf*xf/6) + ((Ht*Gt)+(tf*Gc)); double sigma_max = sigma_maxa; if (ex == 0 && ey ==
double sigma_min = sigma_mina; if (ex == 0 && ey == 0) { sigma_min = sigma_mina; } else if (ex <= (xf/6) && ey == 0) { sigma_min = sigma_minexs; } else if (ex == 0 && ey <= (yf/6)) { sigma_min = sigma_minexs; } else if (ex <= (xf/6) && ey <= (yf/6))
0)
{ sigma_min = { sigma_max =
sigma_maxa; }
sigma_minexs; } else if (ex > (xf/6) && ey > (yf/6))
else if (ex <= (xf/6) && ey == 0) { sigma_max = sigma_maxexs; }
{ sigma_min = sigma_minover; } else if (ex > (xf/6) && ey == 0)
else if (ex == 0 && ey <= (yf/6)) { sigma_max = sigma_maxexs; }
{ sigma_min = sigma_minover; } else if (ex == 0 && ey > (yf/6))
else if (ex <= (xf/6) && ey <= (yf/6)) { sigma_max = sigma_maxexs; }
{ sigma_min = sigma_minover; } else if (ex > (xf/6) && ey <= (yf/6))
70 { sigma_min =
{ Asu = Asperlu; }
sigma_minover; } else if (ro >= ro_max) else if (ex <= (xf/6) && ey > (yf/6)) { Asu = Asmax; } { sigma_min = sigma_minover; } double x = (double)
double SP1 = (double) (0.25 * (Math.PI) * (Math.pow(D,2)) * 1000)/Asu;
(xf/2 - XK/2); double SP2 = double sigma_x = (double) sigma_min + ((xf - x)*(sigma_max sigma_min)/xf);
(double) 2 * tf * 1000; double SP3 = (double) 450;
double Mu1 = (double) (sigma_x * x * x *0.5) + ((sigma_max sigma_x)*x*x/3);
double SP = SP1; if (SP < SP2 && SP <
// + ((1/3)*(sigma_max - sigma_x)*x*x)
SP3) {SP = SP1;}
//(sigma_x * x * x *0.5)
else if (SP2 < SP && SP2 < SP3) double ds = (double)
(75 + (D/2));
{SP = SP2;} double d = (double)
(1000*tf-ds);
else if (SP3 < SP && SP3 < SP2)
double K = (double) (Mu1 * 1000000) / (1000 * d * d * 0.8); // (1000 * d * d * 0.8)
{SP = SP3;} DecimalFormat df = new DecimalFormat("###.####");
// (Mu1 * 1000000)
//"D" + D + " - " + yang dulu..
double fcroperlu = (double) (1-(2*K)/(0.85*Fc));
hasil = (String.valueOf ("D" + D + " - " + df.format(SP))); double ro_min =
(double) 0.0018;
return hasil;
double ro_max = (double) 0.75*(((0.85*Fc)/Fy)*0.85*(600/(600+Fy)));
} catch (Exception e) { e.printStackTrace();
double ro_perlu = (double) ((0.85*Fc)/Fy)*(1- Math.sqrt(fcroperlu));
}
double Asmin =
return "";
(double) ro_min*1000*tf*1000; double Asmax = (double) ro_max*1000*tf*1000;
} public String hitungTul_y_short() {
double Asperlu = (double) ro_perlu*1000*d; double ro = ro_perlu; double Asu = Asmin; if (ro <= ro_min) { Asu = Asmin; } else if (ro > ro_min && ro < ro_max)
try { double D = Double.parseDouble(dia.getText().toString()); double xf = Double.parseDouble(Xf.getText().toString()); double yf = Double.parseDouble(Yf.getText().toString());
71 double Pd = Double.parseDouble(pd.getText().toString());
{ sigma_max = sigma_maxexs; } else if (ex <= (x6) && ey <= (y6))
double Pl = Double.parseDouble(pl.getText().toString()); double Mx = Double.parseDouble(mx.getText().toString());
{ sigma_max = sigma_maxexs; } else if (ex > (x6) && ey > (y6)) { sigma_max = sigma_maxover; }
double My = Double.parseDouble(my.getText().toString()); double Gt = Double.parseDouble(gt.getText().toString());
else if (ex > (x6) && ey == 0) { sigma_max = sigma_maxover; } else if (ex == 0 && ey > (y6))
double Ht = Double.parseDouble(ht.getText().toString()); double tf = Double.parseDouble(Tf.getText().toString()); double Gc = Double.parseDouble(gc.getText().toString()); double ex = Double.parseDouble(Ex.getText().toString()); double ey = Double.parseDouble(Ey.getText().toString()); double Fc = Double.parseDouble(fc.getText().toString()); double YK = Double.parseDouble(yk.getText().toString()); double Fy = Double.parseDouble(fy.getText().toString()); double sigma_maxover = (double) (2/3)*((1.2*Pd + 1.6*Pl)/((0.5*xf-ex)*yf)); double sigma_maxexs = (double) ((1.2*Pd + 1.6*Pl)/(xf*yf))*(1+((6*ex)/(xf))+((6*ey)/(yf)))+((Ht* Gt)+(tf*Gc)); double sigma_maxa = (double) (1.2*Pd + 1.6*Pl) / (xf*yf) + (Mx)/(yf*xf*xf/6) + (My)/(yf*yf*xf/6) + ((Ht*Gt)+(tf*Gc)); double x6 = (double) xf/6; double y6 = (double) yf/6; double sigma_max = sigma_maxa; if (ex == 0 && ey == 0) { sigma_max = sigma_maxa; } else if (ex == 0 && ey <= (y6)) { sigma_max = sigma_maxexs; } else if (ex <= (x6) && ey == 0)
{ sigma_max = sigma_maxover; } else if (ex > (x6) && ey <= (y6)) { sigma_max = sigma_maxover; } else if (ex <= (x6) && ey > (y6)) { sigma_max = sigma_maxover; } double x = (double) (yf/2 - YK/2); double Mu2 = (double) 0.5 * sigma_max * Math.pow(x,2); double ds = (double) (75+ + D + (D/2)); double d = (double) (1000*tf-ds); double K = (double) (Mu2 * 1000000) / (1000 * d * d * 0.8); double fcroperlu = (double) (1(2*K)/(0.85*Fc)); double ro_min = (double) 0.0018; double ro_max = (double) 0.75*(((0.85*Fc)/Fy)*0.85*(600/(600+Fy))); double ro_perlu = (double) ((0.85*Fc)/Fy)*(1- Math.sqrt(fcroperlu)); double Asmin = (double) ro_min*1000*tf*1000; double Asmax = (double) ro_max*1000*tf*1000; double Asperlu = (double) ro_perlu*1000*d; double ro = ro_perlu; double Asu = Asmin; if (ro <= ro_min) { Asu = Asmin; } else if (ro > ro_min && ro < ro_max)
72 { Asu = Asperlu; }
return hasil;
else if (ro >= ro_max)
} catch (Exception e) {
{ Asu = Asmax; }
e.printStackTrace();
double Asp = (double) (2*yf*Asu) / (yf+xf);
}
double Ast = (double) (Asu - Asp);
return "";
double SP1 = (double) (0.25 * (Math.PI) * (Math.pow(D,2)) * 1000)/Asp;
} public String hitungTul_y_long() {
double SP2 = (double) 2 * tf * 1000; try { double SP3 = (double) 450; double D = Double.parseDouble(dia.getText().toString());
double SP = SP1; if (SP < SP2 && SP <
double xf = Double.parseDouble(Xf.getText().toString());
{SP = SP1;}
double yf = Double.parseDouble(Yf.getText().toString());
SP3)
else if (SP2 < SP && SP2 < SP3)
double Pd = Double.parseDouble(pd.getText().toString()); {SP = SP2;} else if (SP3 < SP &&
double Pl = Double.parseDouble(pl.getText().toString());
{SP = SP3;}
double Mx = Double.parseDouble(mx.getText().toString());
SP3 < SP2)
double ST1 = (double) (0.25 * (Math.PI) * (Math.pow(D,2)) * 1000)/Ast; double ST2 = (double) 2 * tf * 1000;
double My = Double.parseDouble(my.getText().toString()); double Gt = Double.parseDouble(gt.getText().toString());
double ST3 = (double) 450; double Ht = Double.parseDouble(ht.getText().toString());
double ST = ST1; if (ST < ST2 && ST < ST3)
double tf = Double.parseDouble(Tf.getText().toString());
{ST = ST1;} else if (ST2 < ST &&
double Gc = Double.parseDouble(gc.getText().toString());
{ST = ST2;}
double ex = Double.parseDouble(Ex.getText().toString());
ST2 < ST3)
else if (ST3 < ST &&
double ey = Double.parseDouble(Ey.getText().toString());
{ST = ST3;}
double Fc = Double.parseDouble(fc.getText().toString());
ST3 < ST2)
DecimalFormat df = new DecimalFormat("###.####"); // "D" + D + " - " hasil = (String.valueOf("D" + D + " - "+ df.format(SP)+" / " +ST)); //+" / " +ST
double YK = Double.parseDouble(yk.getText().toString()); double Fy = Double.parseDouble(fy.getText().toString());
73 double sigma_minover = (double) 0;
{ sigma_max = sigma_maxover; }
double sigma_maxover = (double) (2/3)*((1.2*Pd + 1.6*Pl)/((0.5*xf-ex)*yf));
else if (ex > (x6) && ey <= (y6)) { sigma_max = sigma_maxover; }
double sigma_maxexs = (double) ((1.2*Pd + 1.6*Pl)/(xf*yf))*(1+((6*ex)/(xf))+((6*ey)/(yf)))+((Ht* Gt)+(tf*Gc));
else if (ex <= (x6) && ey > (y6)) { sigma_max = sigma_maxover; }
double sigma_minexs = (double) ((1.2*Pd + 1.6*Pl)/(xf*yf))*(1-((6*ex)/(xf))((6*ey)/(yf)))+((Ht*Gt)+(tf*Gc)); double sigma_mina = (double) (1.2*Pd + 1.6*Pl) / (xf*yf) - (Mx)/(yf*yf*xf/6) - (My)/(yf*xf*xf/6) + ((Ht*Gt)+(tf*Gc));
double sigma_min = sigma_mina; if (ex == 0 && ey == 0) { sigma_min =
double sigma_maxa = (double) (1.2*Pd + 1.6*Pl) / (xf*yf) + (Mx)/(yf*yf*xf/6) + (My)/(yf*xf*xf/6) + ((Ht*Gt)+(tf*Gc));
sigma_mina; } else if (ex <= (x6) && ey <= (y6))
double y6 = (double) yf/6;
{ sigma_min = sigma_minexs; }
double x6 = (double) xf/6; double sigma_max = sigma_maxa; if (ex == 0 && ey ==
else if (ex == 0 && ey <= (y6)) { sigma_min = sigma_minexs; } else if (ex <= (x6) && ey == 0)
0)
{ sigma_min = { sigma_max =
sigma_maxa; }
sigma_minexs; } else if (ex > (x6) && ey > (y6))
else if (ex <= (x6) && ey <= (y6))
{ sigma_min = sigma_minover; }
{ sigma_max = sigma_maxexs; } else if (ex == 0 && ey <= (y6)) { sigma_max = sigma_maxexs; } else if (ex <= (x6) && ey == 0) { sigma_max = sigma_maxexs; } else if (ex > (x6) && ey > (y6)) { sigma_max = sigma_maxover; } else if (ex > (x6) && ey == 0) { sigma_max = sigma_maxover; } else if (ex == 0 && ey > (y6))
else if (ex > (x6) && ey == 0) { sigma_min = sigma_minover; } else if (ex == 0 && ey > (y6)) { sigma_min = sigma_minover; } else if (ex > (x6) && ey <= (y6)) { sigma_min = sigma_minover; } else if (ex <= (x6) && ey > (y6)) { sigma_min = sigma_minover; }
74 double x = (double) (yf/2 - YK/2); double sigma_x = (double) sigma_min + ((yf - x)*(sigma_max sigma_min)/yf); double Mu1 = (double) (sigma_x * x * x *0.5) + ((sigma_max sigma_x)*x*x/3);
double SP1 = (double) (0.25 * (Math.PI) * (Math.pow(D,2)) * 1000)/Asu; double SP2 = (double) 2 * tf * 1000; double SP3 = (double) 450; double SP = SP1;
// + ((1/3)*(sigma_max - sigma_x)*x*x)
if (SP < SP2 && SP < SP3)
//(sigma_x * x * x *0.5)
{SP = SP1;} double ds = (double)
(75 + (D/2));
else if (SP2 < SP && SP2 < SP3)
double d = (double)
{SP = SP2;}
(1000*tf-ds); else if (SP3 < SP && double K = (double) (Mu1 * 1000000) / (1000 * d * d * 0.8);
SP3 < SP2) {SP = SP3;}
// (1000 * d * d * 0.8) // (Mu1 * 1000000) double fcroperlu = (double) (1-(2*K)/(0.85*Fc));
DecimalFormat df = new DecimalFormat("###.####"); hasil = (String.valueOf("D" + D + " - " +df.format(SP)));
double ro_min =
return hasil;
(double) 0.0018; } catch (Exception e) { double ro_max = (double) 0.75*(((0.85*Fc)/Fy)*0.85*(600/(600+Fy)));
e.printStackTrace();
double ro_perlu = (double) ((0.85*Fc)/Fy)*(1- Math.sqrt(fcroperlu));
} return "";
double Asmin = (double) ro_min*1000*tf*1000;
} double Asmax =
(double) ro_max*1000*tf*1000; double Asperlu = (double) ro_perlu*1000*d; double ro = ro_perlu; double Asu = Asmin; if (ro <= ro_min)
public String hitungTul_x_short() { try { double D = Double.parseDouble(dia.getText().toString()); double xf = Double.parseDouble(Xf.getText().toString()); double yf = Double.parseDouble(Yf.getText().toString());
{ Asu = Asmin; } else if (ro > ro_min && ro < ro_max) { Asu = Asperlu; }
double Pd = Double.parseDouble(pd.getText().toString()); double Pl = Double.parseDouble(pl.getText().toString());
else if (ro >= ro_max) { Asu = Asmax; }
double Mx = Double.parseDouble(mx.getText().toString());
75 double My = Double.parseDouble(my.getText().toString());
{ sigma_max = sigma_maxover; }
double Gt = Double.parseDouble(gt.getText().toString());
else if (ex == 0 && ey > (yf/6)) { sigma_max =
double Ht = Double.parseDouble(ht.getText().toString());
sigma_maxover; } else if (ex > (xf/6) && ey <= (yf/6))
double tf = Double.parseDouble(Tf.getText().toString());
{ sigma_max = sigma_maxover; }
double Gc = Double.parseDouble(gc.getText().toString());
else if (ex <= (xf/6) && ey > (yf/6))
double ex = Double.parseDouble(Ex.getText().toString());
sigma_maxover; }
double ey = Double.parseDouble(Ey.getText().toString());
(xf/2 - XK/2);
double Fc = Double.parseDouble(fc.getText().toString());
double Mu2 = (double) 0.5 * sigma_max * Math.pow(x,2);
double XK = Double.parseDouble(xk.getText().toString());
(75+ + D + (D/2));
double Fy = Double.parseDouble(fy.getText().toString());
(1000*tf-ds);
double sigma_maxover = (double) (2/3)*((1.2*Pd + 1.6*Pl)/((0.5*xf-ex)*yf));
{ sigma_max =
double x = (double)
double ds = (double)
double d = (double)
double K = (double) (Mu2 * 1000000) / (1000 * d * d * 0.8); double fcroperlu =
double sigma_maxexs = (double) ((1.2*Pd + 1.6*Pl)/(xf*yf))*(1+((6*ex)/(xf))+((6*ey)/(yf)))+((Ht* Gt)+(tf*Gc)); double sigma_maxa = (double) (1.2*Pd + 1.6*Pl) / (xf*yf) + (Mx)/(yf*xf*xf/6) + (My)/(yf*yf*xf/6) + ((Ht*Gt)+(tf*Gc));
(double) (1-(2*K)/(0.85*Fc)); double ro_min = (double) 0.0018; double ro_max = (double) 0.75*(((0.85*Fc)/Fy)*0.85*(600/(600+Fy))); double ro_perlu = (double) ((0.85*Fc)/Fy)*(1- Math.sqrt(fcroperlu));
double sigma_max = sigma_maxa; double Asmin = if (ex == 0 && ex == 0)
(double) ro_min*1000*tf*1000;
{ sigma_max = sigma_maxa; }
double Asmax = (double) ro_max*1000*tf*1000;
else if (ex <= (xf/6) && ey <= (yf/6)) double Asperlu = { sigma_max = sigma_maxexs; } else if (ex == 0 && ey <= (yf/6)) { sigma_max = sigma_maxexs; } else if (ex <= (xf/6) && ey == 0) { sigma_max = sigma_maxexs; } else if (ex > (xf/6) && ey > (yf/6)) { sigma_max = sigma_maxover; } else if (ex > (xf/6) && ey == 0)
(double) ro_perlu*1000*d; double ro = ro_perlu; double Asu = Asmin; if (ro <= ro_min) { Asu = Asmin; } else if (ro > ro_min && ro < ro_max) { Asu = Asperlu; } else if (ro >= ro_max)
76 { Asu = Asmax; } double Asp =
hasil = (String.valueOf("D"+D+" - "+ df.format(SP)+" / " +ST));
(double) (2*xf*Asu) / (yf+xf); return hasil; double Ast = (double) (Asu - Asp);
} catch (Exception e) {
double SP1 = (double) (0.25 * (Math.PI) * (Math.pow(D,2)) * 1000)/Asp;
e.printStackTrace(); }
double SP2 = (double) 2 * tf * 1000;
return "";
double SP3 = (double) 450; double SP = SP1;
} } Layout Output XML
if (SP < SP2 && SP < SP3)
<ScrollView xmlns:android="http://schemas.android.com/apk/res/an droid"
{SP = SP1;} android:layout_width="fill_parent" else if (SP2 < SP && SP2 < SP3)
android:layout_height="fill_parent" {SP = SP2;}
android:gravity="center"
else if (SP3 < SP &&
android:orientation="vertical" >
SP3 < SP2)
android:layout_height="wrap_content" android:layout_marginTop="10dp"
double ST2 =
android:orientation="horizontal" >
(double) 2 * tf * 1000;
double ST3 = (double) 450;
android:id="@+id/tableRow1" double ST = ST1;
android:layout_width="match_parent"
if (ST < ST2 && ST
android:layout_height="wrap_content"
< ST3)
android:layout_marginLeft="20dp"
{ST = ST1;}
android:layout_marginRight="15dp"
else if (ST2 < ST && ST2 < ST3)
android:gravity="center_horizontal|fill_horizontal" {ST = ST2;} else if (ST3 < ST &&
ST3 < ST2)
{ST = ST3;} DecimalFormat df = new DecimalFormat("###.####"); // "D"+D+" - "+SP+" / "+
>
android:layout_width="wrap_content" android:layout_height="wrap_content" android:textSize="10dp"
77 android:text="Kuat Dukung :" />
android:layout_height="wrap_content"
android:text="Pu" />
<EditText
android:id="@+id/tableRow2"
android:id="@+id/textDdt"
android:layout_width="match_parent"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="20dp"
android:ems="10" />
android:layout_marginRight="15dp"
android:gravity="center_horizontal|fill_horizontal"
> android:id="@+id/tableRow4" android:layout_marginTop="15dp" <EditText android:gravity="center_horizontal|fill_horizontal" android:id="@+id/textSigma"
>
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/textkuatgeser1"
android:ems="10" >
android:layout_width="wrap_content"
<requestFocus />
android:layout_height="wrap_content"
android:textSize="10dp" android:text="Geser 1 arah :" /> android:id="@+id/tableRow3"
android:layout_height="wrap_content"
android:layout_marginRight="15dp"
android:layout_marginLeft="20dp"
android:gravity="center_horizontal|fill_horizontal"
android:layout_marginRight="15dp"
> android:gravity="center_horizontal|fill_horizontal"
>
78 android:layout_width="wrap_content"
android:gravity="center_horizontal|fill_horizontal" >
android:layout_height="wrap_content" android:id="@+id/txtVcy" <EditText android:layout_width="match_parent" android:id="@+id/textVc_x" android:layout_height="wrap_content" android:layout_width="match_parent" android:text="Vc y" /> android:layout_height="wrap_content" <EditText android:ems="10" /> android:id="@+id/textVc_y" android:layout_width="match_parent" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="20dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/textVux"
android:layout_marginLeft="20dp"
android:layout_width="wrap_content"
android:layout_marginRight="15dp"
android:layout_height="wrap_content"
android:gravity="center_horizontal|fill_horizontal" >
android:text="Vu x" />
android:id="@+id/txtVuy"
android:id="@+id/textVu_x"
android:layout_width="wrap_content"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_height="wrap_content"
android:text="Vu y" />
android:ems="10" />
<EditText
android:id="@+id/textVu_y"
android:layout_width="match_parent"
android:id="@+id/tableRow7"
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:ems="10" />
android:layout_height="wrap_content"
android:layout_marginLeft="20dp"
android:layout_marginRight="15dp"
android:id="@+id/tableRow9"
79 android:layout_width="wrap_content"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="20dp"
android:layout_marginLeft="20dp"
android:layout_marginTop="15dp"
android:layout_marginRight="15dp"
android:layout_marginRight="5dp"
android:gravity="center_horizontal|fill_horizontal" >
android:gravity="center_horizontal|fill_horizontal" >
android:id="@+id/textVu2"
android:id="@+id/textkuatgeser2"
android:layout_width="wrap_content"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="10dp"
android:text="Vu 2" />
android:layout_height="wrap_content"
<EditText
android:text="Geser 2 arah :" />
android:id="@+id/textVu_2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/tableRow10"
android:ems="10" />
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="20dp"
android:id="@+id/tableRow12"
android:layout_marginRight="15dp"
android:layout_width="wrap_content"
android:gravity="center_horizontal|fill_horizontal"
android:layout_height="wrap_content"
> android:layout_marginLeft="20dp" <EditText
>
android:id="@+id/textVc_2"
android:layout_width="wrap_content"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_height="wrap_content"
android:textSize="10dp"
android:ems="10" />
android:text="Penulangan :" />
android:id="@+id/tableRow11"
android:id="@+id/tableRow13"
80 android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="20dp"
android:layout_marginRight="15dp"
android:orientation="horizontal"
android:gravity="center_horizontal|fill_horizontal"
android:layout_width="fill_parent"
> android:layout_height="wrap_content" android:layout_height="wrap_content" android:id="@+id/textView1" <EditText android:layout_width="wrap_content" android:id="@+id/textTul_x" android:layout_height="wrap_content" android:layout_width="fill_parent" android:text="" /> android:layout_height="wrap_content" <Button android:ems="10" /> android:id="@+id/btnBack1" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginLeft="20dp" android:layout_marginRight="15dp" android:gravity="center_horizontal|fill_horizontal" >
Output JAVA
android:id="@+id/textTuly"
package com.cobow;
android:layout_width="wrap_content"
import android.app.Activity;
android:layout_height="wrap_content"
import android.content.Intent;
android:text="Tul y" />
import android.os.Bundle;
<EditText
import android.view.View;
android:id="@+id/textTul_y"
import android.widget.Button;
android:layout_width="fill_parent"
import android.widget.EditText;
android:layout_height="wrap_content"
public class Output extends Activity {
android:ems="10" />
81 String sigma, sigmaexover, sigmaexkurang, sigmamin, sigmaexovermin, sigmaexkurangmin, ddt,
vuyexs = b.getString("vuyexs");
vcx, vux, vuxexs, vuxover,
vuyover = b.getString("vuyover");
vcy, vuy, vuyexs, vuyover,
//2arah
vc_2, vu_2, vu_2exs, vu_2over, tul_x_long, tul_y_long, tul_x_short, tul_y_short, hasil,D, xf, yf, ex, ey; EditText textSigma, textDdt, txtvcx, txtvux, txtvcy, txtvuy, txtvc2, txtvu2, txttulx, txttuly; Button back;
vc_2 = b.getString("vc_2"); vu_2 = b.getString("vu_2"); vu_2exs = b.getString("vu_2exs"); vu_2over = b.getString("vu_2over"); sigmamin = b.getString("sigmamin");
@Override protected void onCreate(Bundle savedInstanceState) { // TODO Auto-generated method
sigmaexovermin = b.getString("sigmaexovermin"); sigmaexkurangmin = b.getString("sigmaexkurangmin");
stub sigmaexkurang = b.getString("sigmaexkurang"); super.onCreate(savedInstanceState); sigmaexover = b.getString("sigmaexover"); setContentView(R.layout.layout_output); sigma = b.getString("sigma"); Bundle b = getIntent().getExtras();
tul_x_long = b.getString("tul_x_long");
D = b.getString("diameter"); xf = b.getString("xf"); yf = b.getString("yf");
tul_y_long = b.getString("tul_y_long"); tul_x_short = b.getString("tul_x_short");
ex = b.getString("ex"); ey = b.getString("ey");
tul_y_short = b.getString("tul_y_short");
ddt = b.getString("ddt"); // memberi inisial "" pada string biar gak menampilkan nilai kosong
//1arah x vcx = b.getString("vcx");
vux = b.getString("vux");
vuxexs = b.getString("vuxexs"); vuxover = b.getString("vuxover"); //1arah y vcy = b.getString("vcy"); vuy = b.getString("vuy");
textSigma = (EditText) findViewById(R.id.textSigma); textSigma.setText(sigma); textDdt = (EditText) findViewById(R.id.textDdt);
textDdt.setText(String.valueOf(ddt));
82 txtvcx = (EditText) findViewById(R.id.textVc_x);
if (Double.parseDouble(ex) == 0 && Double.parseDouble(ey) == 0) { Vually = vuy; }
txtvcx.setText(String.valueOf(vcx)); double exxx = Double.parseDouble(xf);
else if (Double.parseDouble(ey) == 0 && Double.parseDouble(ex) <= exx) { Vually = vuyexs; }
double eyyy = Double.parseDouble(yf); double exx = (double) exxx/6;
else if (Double.parseDouble(ey) <= eyy && Double.parseDouble(ex) == 0)
double eyy = (double) eyyy/6; String Vuallx = "";
{ Vually = vuyexs; } else if (Double.parseDouble(ey) <= eyy)
// memberi inisial "" pada string biar gak menampilkan nilai kosong
{ Vually = vuyexs; } else if (Double.parseDouble(ey) <= (-eyy))
if (Double.parseDouble(ex) == 0 && Double.parseDouble(ey) == 0) { Vuallx = vux; }
{ Vually = vuyexs; } else if (Double.parseDouble(ey) > eyy && Double.parseDouble(ey) < (-eyy))
else if (Double.parseDouble(ex) == 0 && Double.parseDouble(ey) <= eyy) { Vuallx = vuxexs; }
{ Vually = vuyover; } txtvuy = (EditText) findViewById(R.id.textVu_y);
else if (Double.parseDouble(ex) <= exx && Double.parseDouble(ey) == 0) txtvuy.setText(String.valueOf(Vually)); { Vuallx = vuxexs; } else if (Double.parseDouble(ex) <= exx)
txtvc2 = (EditText) findViewById(R.id.textVc_2);
{ Vuallx = vuxexs; } txtvc2.setText(String.valueOf(vc_2)); else if (Double.parseDouble(ex) >= (-exx)) String Vuall2 = ""; { Vuallx = vuxexs; } else if (Double.parseDouble(ex) > exx) { Vuallx = vuxover; }
// memberi inisial "" pada string biar gak menampilkan nilai kosong if (Double.parseDouble(ex) == 0 && Double.parseDouble(ey) == 0)
else if (Double.parseDouble(ex) < (-exx)) { Vuall2 = vu_2; } { Vuallx = vuxover; } else if (Double.parseDouble(ex) <= (exx) && txtvux = (EditText) findViewById(R.id.textVu_x);
Double.parseDouble(ex) >= (exx)) { Vuall2 = vu_2exs; }
txtvux.setText(String.valueOf(Vuallx)); txtvcy = (EditText) findViewById(R.id.textVc_y);
txtvcy.setText(String.valueOf(vcy)); String Vually = ""; // memberi inisial "" pada string biar gak menampilkan nilai kosong
else if
(Double.parseDouble(ey) <=
(eyy) &&
Double.parseDouble(ey) >= (-eyy)) { Vuall2 = vu_2exs; } else if (Double.parseDouble(ex) > (exx) &&
83 Double.parseDouble(ex) < (exx)) { Vuall2 = vu_2over; }
txttuly = (EditText) findViewById(R.id.textTul_y);
else if (Double.parseDouble(ey) > (eyy) && txttuly.setText(String.valueOf(Tully)); Double.parseDouble(ey) < (eyy))
//"D" + D + " - " + { Vuall2 = vu_2over; }
txtvu2 = (EditText) findViewById(R.id.textVu_2);
txtvu2.setText(String.valueOf(Vuall2));
back = (Button) findViewById(R.id.btnBack1); back.setOnClickListener(new View.OnClickListener() {
String Tullx = "";
@Override
// memberi inisial "" pada string biar gak menampilkan nilai kosong
onClick(View v) {
if (Double.parseDouble(xf) == Double.parseDouble(yf))
Auto-generated method stub
{ Tullx = tul_x_long; }
public void
// TODO
Intent intent = new Intent(v.getContext(), Input.class);
else if (Double.parseDouble(xf) > Double.parseDouble(yf)) startActivity(intent); { Tullx = tul_x_long; } } else if (Double.parseDouble(xf) < Double.parseDouble(yf))
});
{ Tullx = tul_x_short; } txttulx = (EditText) findViewById(R.id.textTul_x);
txttulx.setText(String.valueOf(Tullx)); //"D" + D + " - " + String Tully = ""; // memberi inisial "" pada string biar gak menampilkan nilai kosong if (Double.parseDouble(xf) == Double.parseDouble(yf)) { Tully = tul_y_long; } else if (Double.parseDouble(yf) > Double.parseDouble(xf)) { Tully = tul_y_long; } else if (Double.parseDouble(yf) < Double.parseDouble(xf)) { Tully = tul_y_short; }
} }