UAS Take Home

SISTEM BASIS DATA

1. Apa perbedaan antara ERD dan ERS berikan contoh gambar!!!
2. Jelaskan syarat tahapan normalisasi? berikan contoh!
3. Gambarkan sistem informasi perpustakaan menggunakan LRS dan gambarkan menu entri dan transaksi
    prototype??

Tugas OOP 2

Penghitungan Volume Balok


Source Code :

import javax.swing.JOptionPane;

public class VolumeBalok {
public static void main(String[] args) {
String num1 =
JOptionPane.showInputDialog("Masukkan nilai panjang");
String num2 =
JOptionPane.showInputDialog("Masukkan nilai lebar");
String num3 =
JOptionPane.showInputDialog("Masukkan nilai tinggi");
int numInt1 = Integer.parseInt(num1);
int numInt2 = Integer.parseInt(num2);
int numInt3 = Integer.parseInt(num3);
JOptionPane.showMessageDialog (null, "Volume Balok\n" + konversi(numInt1,numInt2,numInt3));
}

static int konversi(int p,int l, int t) {
int volume = p*l*t;
return volume;
}
}

powered by Blogger | WordPress by Newwpthemes | Converted by BloggerTheme | Blogger Templates | Best Credit Cards