LISTING PROGRAM. private void filetoolstripmenuitem_click(object sender, EventArgs e) { this.hide(); Form2 fr = new Form2(); fr.
|
|
- Mervin Pierce
- 6 years ago
- Views:
Transcription
1 Kode Program Form Home namespace SkripsiLagi public partial class Form9 : Form public Form9() LISTING PROGRAM private void filetoolstripmenuitem_click(object sender, EventArgs e) Form2 fr = new Form2(); private void helptoolstripmenuitem1_click(object sender, EventArgs e) Form11 fr = new Form11(); private void exittoolstripmenuitem_click_1(object sender, EventArgs e) Application.Exit(); private void helptoolstripmenuitem_click(object sender, EventArgs e) Form10 fr = new Form10(); Kode Program Form Identitas
2 namespace SkripsiLagi public partial class Form2 : Form public Form2() private void button1_click(object sender, EventArgs e) Form1 fr = new Form1(); Kode Program Form Autentikasi using System.Numerics; using System.Diagnostics; namespace SkripsiLagi public partial class Form1 : Form int p1_arb, p2_arb, n_arb = 0, e_arb, d_arb, totien_n; int p1_user1, p2_user1, n_user1 = 0, e_user1, d_user1; int p1_user2, p2_user2, n_user2 = 0, e_user2, d_user2; int[] X; public BigInteger[] sign_id1; public BigInteger[] sign_id2; public BigInteger sign_k1n, sign_k1e, sign_k2n, sign_k2e; BigInteger[] dekrip_id1; BigInteger[] dekrip_id2; BigInteger dekrip_k1n, dekrip_k1e, dekrip_k2n, dekrip_k2e; string id1, id2; int enkrip_sign_sk, enkrip_sign_t; Stopwatch sw = new Stopwatch(); Random rnd = new Random(); public Form1()
3 public Form1(string frm4, string aa) : this() int dekrip_sign_sk = Convert.ToInt32(s_KeyDec.Text); int dekrip_sign_t = Convert.ToInt32(t_StampDec.Text); s_keydec.text = ""; t_stampdec.text = ""; MessageBox.Show(dekrip_sign_sk.ToString() + " : " + dekrip_sign_t.tostring()); private void button2_click(object sender, EventArgs e) string identitas; //Sign User1 identitas = id_user1_sign.text; int[] id1 = new int[identitas.length]; sign_id1 = new BigInteger[identitas.Length]; for (int i = 0; i < identitas.length; i++) id1[i] = Convert.ToInt32(identitas[i]); for (int i = 0; i < id1.length; i++) sign_id1[i] = BigInteger.ModPow(id1[i], d_arb, n_arb); sign_k1n = BigInteger.ModPow(n_user1, d_arb, n_arb); sign_k1e = BigInteger.ModPow(e_user1, d_arb, n_arb); //Sign User2 identitas = id_user2_sign.text; int[] id2 = new int[identitas.length]; sign_id2 = new BigInteger[identitas.Length]; for (int i = 0; i < identitas.length; i++) id2[i] = Convert.ToInt32(identitas[i]); for (int i = 0; i < id2.length; i++) sign_id2[i] = BigInteger.ModPow(id2[i], d_arb, n_arb); sign_k2n = BigInteger.ModPow(n_user2, d_arb, n_arb); sign_k2e = BigInteger.ModPow(e_user2, d_arb, n_arb); Form3 fr3 = new Form3(sign_id1, sign_k1n, sign_k1e, sign_id2, sign_k2n, sign_k2e); fr3.show(); /*string iduser1 = ""; dekrip_id1 = new BigInteger[sign_id1.Length]; dekrip_id2 = new BigInteger[sign_id2.Length]; int limit = sign_id1.length; for (int i = 0; i < limit; i++) iduser1 += sign_id1[i].tostring() + " "; id_user1dec.text = iduser1; n_user1dec.text = sign_k1n.tostring();
4 e User1Dec.Text = sign_k1e.tostring(); string iduser2 = ""; limit = sign_id2.length; for (int i = 0; i < limit; i++) iduser2 += sign_id2[i].tostring() + " "; id_user2dec.text = iduser2; n_user2dec.text = sign_k2n.tostring(); e User2Dec.Text = sign_k2e.tostring();*/ private void button4_click(object sender, EventArgs e) BigInteger skey = Convert.ToInt32(s_Key.Text); BigInteger time = Convert.ToInt32(t_Stamp.Text); BigInteger sign_sk, sign_t; sign_sk = BigInteger.ModPow(sKey, d_user1, n_user1); sign_t = BigInteger.ModPow(time, d_user1, n_user1); Form4 fr = new Form4(sign_sk, sign_t, e_user2, n_user2); // private void button5_click(object sender, EventArgs e) sw.start(); id1 = ""; id2 = ""; dekrip_id1 = new BigInteger[sign_id1.Length]; dekrip_id2 = new BigInteger[sign_id2.Length]; for (int i = 0; i < sign_id1.length; i++) dekrip_id1[i] = BigInteger.ModPow(sign_id1[i], e_arb, n_arb); id1 += char.convertfromutf32((int)dekrip_id1[i]); for (int i = 0; i < sign_id2.length; i++) dekrip_id2[i] = BigInteger.ModPow(sign_id2[i], e_arb, n_arb); id2 += char.convertfromutf32((int)dekrip_id2[i]); dekrip_k1n = BigInteger.ModPow(Convert.ToInt32(n_User1Dec.Text), e_arb, n_arb); dekrip_k1e = BigInteger.ModPow(sign_k1e, e_arb, n_arb); dekrip_k2n = BigInteger.ModPow(Convert.ToInt32(n_User2Dec.Text), e_arb, n_arb); dekrip_k2e = BigInteger.ModPow(sign_k2e, e_arb, n_arb); sw.stop(); time.text = "Time: " + sw.elapsed + " second"; Form6 fr = new Form6(id1, dekrip_k1n, dekrip_k1e, id2, dekrip_k2n, dekrip_k2e); private void button6_click(object sender, EventArgs e) sw.start(); /*state = true;
5 s_keydec.text = enkrip_sign_sk.tostring(); t_stampdec.text = enkrip_sign_t.tostring();*/ enkrip_sign_sk = Convert.ToInt32(s_KeyDec.Text); enkrip_sign_t = Convert.ToInt32(t_StampDec.Text); int dekrip_sign_sk = (int)biginteger.modpow(enkrip_sign_sk, d_user2, n_user2); int dekrip_sign_t = (int)biginteger.modpow(enkrip_sign_t, d_user2, n_user2); n_user1); n_user1); int dekrip_sk = (int)biginteger.modpow(dekrip_sign_sk, e_user1, int dekrip_t = (int)biginteger.modpow(dekrip_sign_t, e_user1, sw.stop(); time.text = "Time: " + sw.elapsed + " second"; Form7 fr = new Form7(dekrip_sk, dekrip_t); private void textbox22_textchanged(object sender, EventArgs e) private void Form1_Load(object sender, EventArgs e) if (id_user1.text == "") TextBox id1 = Application.OpenForms["Form2"].Controls["id_User1"] as TextBox; id_user1.text = id1.text; TextBox id2 = Application.OpenForms["Form2"].Controls["id_User2"] as TextBox; id_user2.text = id2.text; //Form frm2 = Application.OpenForms["Form2"] as Form; //frm2.dispose(); public bool Fermat(BigInteger prime) BigInteger a = 0; for (int i = 0; i <= prime.tostring().length; i++) a = Random(prime); if (!(BigInteger.ModPow(a, prime - 1, prime).isone)) return false; return true; public BigInteger Random(BigInteger prime) BigInteger bigval; int limit = rnd.next(2, prime.tostring().length); do
6 string strval = ""; if (prime.tostring().length == 1) for (int i = 0; i < prime.tostring().length; i++) int val = rnd.next(2, 10); strval += val.tostring(); bigval = BigInteger.Parse(strVal); else int val; for (int i = 0; i < limit; i++) if (i == 0) val = rnd.next(0, Convert.ToInt32(prime.ToString().Substring(0, 1))); strval += val.tostring(); else val = rnd.next(0, 10); strval += val.tostring(); bigval = BigInteger.Parse(strVal); while (bigval < 2 bigval >= prime); return bigval; private int get_e(int totien_n) int e = 1; for (int i = 2; i < totien_n; i++) if (BigInteger.GreatestCommonDivisor(i, totien_n) == 1) e = i; break; return e; private int get_d(int totien_n, int e) int j = 1, ed = 0, d; while (ed!= 1) ed = (j * e) % totien_n; j++; d = j - 1; return d; private void btn_kunci_click(object sender, EventArgs e)
7 //Get Key Arbitrator p1_arb = rnd.next(100, 1000); p2_arb = rnd.next(100, 1000); while (!(Fermat((BigInteger)p1_arb) && Fermat((BigInteger)p2_arb))) p1_arb = rnd.next(100, 1000); p2_arb = rnd.next(100, 1000); n_arb = p1_arb * p2_arb; totien_n = (p1_arb - 1) * (p2_arb - 1); e_arb = get_e(totien_n); d_arb = get_d(totien_n, e_arb); n_arbit.text = n_arb.tostring(); e_arbit.text = e_arb.tostring(); d_arbit.text = d_arb.tostring(); //Get Key User 1 p1_user1 = rnd.next(100, 1000); p2_user1 = rnd.next(100, 1000); while (!(Fermat((BigInteger)p1_user1) && Fermat((BigInteger)p2_user1))) p1_user1 = rnd.next(100, 1000); p2_user1 = rnd.next(100, 1000); n_user1 = p1_user1 * p2_user1; if (n_user1 >= n_arb) btn_kunci_click(null, null); totien_n = (p1_user1-1) * (p2_user1-1); e_user1 = get_e(totien_n); d_user1 = get_d(totien_n, e_user1); n_user1.text = n_user1.tostring(); e_user1.text = e_user1.tostring(); d_user1.text = d_user1.tostring(); //Get Key User 2 p1_user2 = rnd.next(100, 1000); p2_user2 = rnd.next(100, 1000); while (!(Fermat((BigInteger)p1_user2) && Fermat((BigInteger)p2_user2))) p1_user2 = rnd.next(100, 1000); p2_user2 = rnd.next(100, 1000); n_user2 = p1_user2 * p2_user2; if (n_user2 >= n_arb) btn_kunci_click(null, null); totien_n = (p1_user2-1) * (p2_user2-1); e_user2 = get_e(totien_n); d_user2 = get_d(totien_n, e_user2); n_user2.text = n_user2.tostring(); e_user2.text = e_user2.tostring(); d_user2.text = d_user2.tostring(); id_user1_sign.text = id_user1.text; n_user1_sign.text = n_user1.text; e_user1_sign.text = e_user1.text;
8 id_user2_sign.text = id_user2.text; n_user2_sign.text = n_user2.text; e_user2_sign.text = e_user2.text; private int LCG() int a = 106, b = 1283, m = 6075; X = new int[m]; for (int i = 1; i < m; i++) X[i] = ((int)a * X[i - 1] + (int)b) % m; //hasil += X[i].ToString() + " "; //richtextbox1.text = hasil; int idx = rnd.next(1, m); int key = X[idx]; return key; private void btn_ok_click(object sender, EventArgs e) s_key.text = LCG().ToString(); t_stamp.text = DateTime.Now.ToString("hhmm"); private void t_stampdec_textchanged(object sender, EventArgs e) /*if (s_keydec.text!= "" && t_stampdec.text!= "" && state == false) enkrip_sign_sk = Convert.ToInt32(s_KeyDec.Text); enkrip_sign_t = Convert.ToInt32(t_StampDec.Text); s_keydec.text = ""; t_stampdec.text = ""; //MessageBox.Show(dekrip_sign_sk.ToString() + " : " + dekrip_sign_t.tostring()); */ private void s_keydec_textchanged(object sender, EventArgs e) Kode Program Form Hasil Sign Arbitrator using System.Numerics;
9 namespace SkripsiLagi public partial class Form3 : Form public Form3() public Form3(BigInteger[] sign_id1, BigInteger sign_k1n, BigInteger sign_k1e, BigInteger[] sign_id2, BigInteger sign_k2n, BigInteger sign_k2e) : this() string iduser1 = ""; int limit = sign_id1.length; for (int i = 0; i < limit; i++) iduser1 += sign_id1[i].tostring() + " "; id_user1_sign.text = iduser1; n_user1_sign.text = sign_k1n.tostring(); e_user1_sign.text = sign_k1e.tostring(); string iduser2 = ""; limit = sign_id2.length; for (int i = 0; i < limit; i++) iduser2 += sign_id2[i].tostring() + " "; id_user2_sign.text = iduser2; n_user2_sign.text = sign_k2n.tostring(); e_user2_sign.text = sign_k2e.tostring(); //this.form3_load(null, null); private void button1_click(object sender, EventArgs e) GroupBox gb = Application.OpenForms["Form1"].Controls["groupBox4"].Controls["groupBox6"] as GroupBox; TextBox id1 = gb.controls["id_user1dec"] as TextBox; id1.text = id_user1_sign.text; TextBox n1 = gb.controls["n_user1dec"] as TextBox; n1.text = n_user1_sign.text; TextBox e1 = gb.controls["e User1Dec"] as TextBox; e1.text = e_user1_sign.text; TextBox id2 = gb.controls["id_user2dec"] as TextBox; id2.text = id_user2_sign.text; TextBox n2 = gb.controls["n_user2dec"] as TextBox; n2.text = n_user2_sign.text; TextBox e2 = gb.controls["e User2Dec"] as TextBox; e2.text = e_user2_sign.text; Form fr = Application.OpenForms["Form1"] as Form; private void Form3_Load(object sender, EventArgs e)
10 // //Form1 frm1 = new Form1();// Application.OpenForms["Form1"] as Form; Kode Program Form Hasil Sign User1 using System.Numerics; namespace SkripsiLagi public partial class Form4 : Form int e2, n2; public Form4() public Form4(BigInteger sign_sk, BigInteger sign_t, int e, int n) : this() s_keysign.text = sign_sk.tostring(); t_stampsign.text = sign_t.tostring(); e2 = e; n2 = n; private void button1_click(object sender, EventArgs e) int sign_sk = Convert.ToInt32(s_KeySign.Text); int sign_t = Convert.ToInt32(t_StampSign.Text); BigInteger Enkrip_sign_sk = BigInteger.ModPow(sign_sk, e2, n2); BigInteger Enkrip_sign_t = BigInteger.ModPow(sign_t, e2, n2); Form5 fr = new Form5(Enkrip_sign_sk, Enkrip_sign_t); private void Form4_Load(object sender, EventArgs e)
11 Kode Program Form Hasil Enkripsi User1 using System.Numerics; namespace SkripsiLagi public partial class Form5 : Form public Form5() public Form5(BigInteger Enkrip_sign_sk, BigInteger Enkrip_sign_t) : this() s_keyenkrip.text = Enkrip_sign_sk.ToString(); t_stampenkrip.text = Enkrip_sign_t.ToString(); private void button1_click(object sender, EventArgs e) GroupBox gb = Application.OpenForms["Form1"].Controls["groupBox4"].Controls["groupBox6"] as GroupBox; TextBox key = gb.controls["s_keydec"] as TextBox; key.text = s_keyenkrip.text; TextBox time = gb.controls["t_stampdec"] as TextBox; time.text = t_stampenkrip.text; Form fr = Application.OpenForms["Form1"] as Form; //fr.show(); private void Form5_Load(object sender, EventArgs e) Kode Program Form Hasil Dekripsi Identitas dan Kunci using System.Numerics;
12 namespace SkripsiLagi public partial class Form6 : Form public Form6() public Form6(string id1, BigInteger dekrip_k1n, BigInteger dekrip_k1e, string id2, BigInteger dekrip_k2n, BigInteger dekrip_k2e) : this() id_user1.text = id1; n_user1.text = dekrip_k1n.tostring(); e_user1.text = dekrip_k1e.tostring(); id_user2.text = id2; n_user2.text = dekrip_k2n.tostring(); e_user2.text = dekrip_k2e.tostring(); private void button5_click(object sender, EventArgs e) GroupBox gb1 = Application.OpenForms["Form1"].Controls["groupBox3"] as GroupBox; GroupBox gb2 = Application.OpenForms["Form1"].Controls["groupBox4"] as GroupBox; TextBox id1 = gb1.controls["id_user1"] as TextBox; TextBox n1 = gb1.controls["n_user1"] as TextBox; TextBox e1 = gb1.controls["e_user1"] as TextBox; TextBox id2 = gb2.controls["id_user2"] as TextBox; TextBox n2 = gb2.controls["n_user2"] as TextBox; TextBox e2 = gb2.controls["e_user2"] as TextBox; if (id_user1.text == id1.text && n_user1.text == n1.text && e_user1.text == e1.text && id_user2.text == id2.text && n_user2.text == n2.text && e_user2.text == e2.text) MessageBox.Show("Identitas dan Kunci Publik Valid"); Button btn = gb2.controls["groupbox6"].controls["btn_dec2user2"] as Button; btn.enabled = true; else MessageBox.Show("Identitas atau Kunci Publik tidak Valid"); private void Form6_Load(object sender, EventArgs e) Kode Program Form Hasil Dekripsi Session Key dan Timestamp
13 namespace SkripsiLagi public partial class Form7 : Form public Form7() public Form7(int sk, int t) : this() string time = t.tostring(); if (time.length == 1) time = "000" + time; else if (time.length == 2) time = "00" + time; else if (time.length == 3) time = "0" + time; s_key.text = sk.tostring(); t_stamp.text = time; private void button6_click(object sender, EventArgs e) GroupBox gb = Application.OpenForms["Form1"].Controls["groupBox3"].Controls["groupBox1"] as GroupBox; TextBox key = gb.controls["s_key"] as TextBox; if (s_key.text == key.text) int time = Convert.ToInt32(t_Stamp.Text); int time_now = Convert.ToInt32(DateTime.Now.ToString("hhmm")); if (time_now - time >= 0 && time_now - time <= 10) MessageBox.Show("Session Key dan Timestamp valid"); Form8 fr = new Form8(s_Key.Text); else if (s_key.text!= key.text) MessageBox.Show("Session Key dan Timestamp tidak valid"); private void Form7_Load(object sender, EventArgs e)
14 Kode Program Form Komunikasi using System.Numerics; using System.IO; namespace SkripsiLagi public partial class Form8 : Form BigInteger n_user1, n_user2; int e_user1, d_user1, e_user2, d_user2; string user1, user2; public Form8() public Form8(string key) : this() s_key.text = key; GroupBox gb = Application.OpenForms["Form1"].Controls["groupBox3"] as GroupBox; GroupBox gb2 = Application.OpenForms["Form1"].Controls["groupBox4"] as GroupBox; TextBox id1 = gb.controls["id_user1"] as TextBox; TextBox id2 = gb2.controls["id_user2"] as TextBox; TextBox n1 = gb.controls["n_user1"] as TextBox; TextBox e1 = gb.controls["e_user1"] as TextBox; TextBox d1 = gb.controls["d_user1"] as TextBox; TextBox n2 = gb2.controls["n_user2"] as TextBox; TextBox e2 = gb2.controls["e_user2"] as TextBox; TextBox d2 = gb2.controls["d_user2"] as TextBox; user1 = id1.text; user2 = id2.text; n_user1 = BigInteger.Parse(n1.Text); n_user2 = BigInteger.Parse(n2.Text); e_user1 = Convert.ToInt32(e1.Text); e_user2 = Convert.ToInt32(e2.Text); d_user1 = Convert.ToInt32(d1.Text); d_user2 = Convert.ToInt32(d2.Text); private void button4_click(object sender, EventArgs e) if (MessageBox.Show("End Chat?", "Exit", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) Application.Exit();
15 private void Form8_Load(object sender, EventArgs e) private void pesan_user1_textchanged(object sender, EventArgs e) if (pesan_user1.text == "") btn_kirimuser1.enabled = false; else btn_kirimuser1.enabled = true; private void pesan_user2_textchanged(object sender, EventArgs e) if (pesan_user2.text == "") btn_kirimuser2.enabled = false; else btn_kirimuser2.enabled = true; private void chat_cipher_textchanged(object sender, EventArgs e) if (chat_cipher.text == "") btn_simpan.enabled = false; else btn_simpan.enabled = true; private void btn_kirimuser1_click(object sender, EventArgs e) string pesan = "", pesan2 = ""; int ascii, plaintext; BigInteger cipher; foreach (char c in pesan_user1.text) ascii = Convert.ToInt32(c); cipher = BigInteger.ModPow(c, e_user2, n_user2); pesan += cipher.tostring() + " "; //int j = chat_user1.textlength; chat_user1.text += "You: " + pesan_user1.text + "\r\n"; chat_cipher.text += pesan + "\r\n"; //MessageBox.Show(j.ToString() + " " + chat_user1.textlength); /*chat_user1.select(j, 3); chat_user1.selectioncolor = Color.Blue; chat_user1.select(j + 3, chat_user1.textlength); chat_user1.selectioncolor = Color.Black;*/ pesan_user1.text = ""; //chat_user1.select(0, 0); string[] temp = pesan.split(' '); int[] plain = new int[temp.length]; for (int i = 0; i < temp.length - 1; i++) plain[i] = Convert.ToInt32(temp[i]); plaintext = (int)biginteger.modpow(plain[i], d_user2, n_user2); pesan2 += char.convertfromutf32(plaintext);
16 //int k = chat_user2.text.length; chat_user2.text += user1 + ": " + pesan2 + "\r\n"; /*int length = user1.length; chat_user2.select(k, length); chat_user2.selectioncolor = Color.Red;*/ private void btn_kirimuser2_click(object sender, EventArgs e) string pesan = "", pesan2 = ""; int ascii, plaintext; BigInteger cipher; foreach (char c in pesan_user2.text) ascii = Convert.ToInt32(c); cipher = BigInteger.ModPow(c, e_user1, n_user1); pesan += cipher.tostring() + " "; //int k = chat_user2.text.length; chat_user2.text += "You: " + pesan_user2.text + "\r\n"; chat_cipher.text += pesan + "\r\n"; pesan_user2.text = ""; //chat_user2.select(k, 3); //chat_user2.selectioncolor = Color.Blue; string[] temp = pesan.split(' '); int[] plain = new int[temp.length]; for (int i = 0; i < temp.length - 1; i++) plain[i] = Convert.ToInt32(temp[i]); plaintext = (int)biginteger.modpow(plain[i], d_user1, n_user1); pesan2 += char.convertfromutf32(plaintext); //int j = chat_user1.text.length; chat_user1.text += user2 + ": " + pesan2 + "\r\n"; //int length = user2.length; //chat_user1.select(j, length); //chat_user1.selectioncolor = Color.Red; private void btn_simpan_click(object sender, EventArgs e) string text = chat_cipher.text + "/" + user1 + "/" + n_user1.tostring() + "/" + e_user1.tostring() + "/" + user2 + "/" + n_user2.tostring() + "/" + e_user2.tostring(); string filename = "D:\\Data\\" + s_key.text + ".txt"; FileStream fstream = new FileStream(filename, FileMode.OpenOrCreate); StreamWriter sw = new StreamWriter(fstream); SeekOrigin seekorigin = new SeekOrigin(); sw.basestream.seek(0, seekorigin); sw.writeline(text); sw.flush(); MessageBox.Show("File berhasil disimpan", "Simpan", MessageBoxButtons.OK, MessageBoxIcon.Information); private void Home_Click(object sender, EventArgs e)
17 Form9 frm = new Form9(); Form frm1 = Application.OpenForms["Form1"] as Form; frm1.dispose(); this.dispose(); frm.showdialog(); Kode Program Form Arsip using System.IO; namespace SkripsiLagi public partial class Form10 : Form public Form10() private void btn_ok_click(object sender, EventArgs e) string isi; FileStream fstream = new FileStream("D:\\Data\\" + s_key.text + ".txt", FileMode.Open, FileAccess.Read); StreamReader sr = new StreamReader(fstream); sr.basestream.seek(0, SeekOrigin.Begin); isi = sr.readtoend(); sr.close(); string[] text = isi.split('/'); txtcipher.text = text[0]; id_user1.text = text[1]; n_user1.text = text[2]; e_user1.text = text[3]; id_user2.text = text[4]; n_user2.text = text[5]; e_user2.text = text[6]; private void btn_exit_click(object sender, EventArgs e) Form9 fr = new Form9();
18 Kode Program Form Help namespace SkripsiLagi public partial class Form11 : Form public Form11() private void button1_click(object sender, EventArgs e) Form9 fr = new Form9();
19 CURRICULUM VITAE Nama : Santo Palentin Manarias Tempat/Tanggal Lahir : Sukamakmur, 28 Oktober 1989 Agama : Kristen Alamat Sekarang : Jl. Jamin Ginting Gg Pembangunan No 3A Alamat Orang Tua : Bagan Batu - Riau Telp/ Hp : santonainggolan@gmail.com Riwayat Pendidikan : S1 Ilmu Komputer, Medan : SMA Katolik Budi Murni 1 Medan : SMP Katolik Budi Murni 1 Medan : SDN Gunung Raya Pengalaman Organisasi dan Kegiatan Ilmiah Anggota Departemen Humas Ikatan Mahasiswa S1 Ilmu Komputer (IMILKOM), Ketua Departemen Humas Pemerintahan Mahasiswa Fakultas Ilmu Komputer dan Teknologi Informasi (PEMA FASILKOM-TI) Praktek Kerja Lapangan di PT. Adhi Karya Medan
Listing Program. private void exittoolstripmenuitem_click(object sender, EventArgs e) { Application.Exit(); }
Listing Program Kode Program Menu Home: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using
More informationLISTING PROGRAM. a = b; b = c; c = a + b; } fibs.reverse(); for (int i = 0; i < fibs.count; i++) { if (n >= fibs[i]) { n = n - fibs[i];
A-1 A LISTING PROGRAM 1. Fibonacci Code //membuat fungsi Fibonacci Code public static String GetFibonacciCode(int n) { StringBuilder fib = new StringBuilder("1"); int a, b, c; List fibs = new List();
More informationLAMPIRAN A : LISTING PROGRAM
LAMPIRAN A : LISTING PROGRAM 1. Form Utama (Cover) using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text;
More informationLISTING PROGRAM. namespace vigenere_des { public partial class MainPage : PhoneApplicationPage { public MainPage() { InitializeComponent(); }
59 LISTING PROGRAM Form Utama : using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Windows; using System.Windows.Controls; using System.Windows.Navigation;
More informationLAMPIRAN A LISTING PROGRAM
A-1 LAMPIRAN A LISTING PROGRAM FUNGSI public void StopWatchStart() stopwatch.reset(); stopwatch.start(); Cursor.Current = Cursors.WaitCursor; txtlog.text = ""; public void StopWatchStop(string Title) stopwatch.stop();
More informationLISTING PROGRAM. 1. Module SkripsiUmri.py. import sys, operator, codecs, time. class Timer(object): def init (self): self.t1= time.
A1 LISTING PROGRAM 1. Module SkripsiUmri.py import sys, operator, codecs, time class Timer(object): def init (self): self.t1= time.time() def getelapsedltime(self): # gets total elapsed from class initialsation
More informationA-1 LISTING PROGRAM. 1. Form1.cs. Universitas Sumatera Utara
A-1 LISTING PROGRAM 1. Form1.cs using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using IronPython.Hosting; using Microsoft.Scripting;
More informationLISTING PROGRAM. % UIWAIT makes pertama wait for user response (see UIRESUME) % uiwait(handles.figure1);
LISTING PROGRAM FORM PERTAMA : function varargout = pertama(varargin) gui_singleton = 1; gui_state = struct('gui_name', mfilename,... 'gui_singleton', gui_singleton,... 'gui_openingfcn', @pertama_openingfcn,...
More informationLISTING PROGRAM. mainform.vb A-1. Universitas Sumatera Utara
A-1 LISTING PROGRAM mainform.vb Imports System.IO Public Class mainform Private Sub mainform_load(byval sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load enkripsirb.checked = True
More informationMain Game Code. //ok honestly im not sure, if i guess its a class ment for this page called methodtimer that //either uses the timer or set to timer..
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms;
More informationA-1 LAMPIRAN A LISTING PROGRAM. Kode Program Form Main: Universitas Sumatera Utara
A-1 LAMPIRAN A A LISTING PROGRAM Kode Program Form Main: #Region Project Attributes #ApplicationLabel: Samuel Panjaitan #VersionCode: 1 #VersionName: #SupportedOrientations: portrait #CanInstallToExternalStorage:
More informationLAMPIRAN A : LISTING PROGRAM
46 LAMPIRAN A : LISTING PROGRAM 1. Mainform /* * Created by SharpDevelop. * User: User7 * Date: 28/09/2015 * Time: 9:38 * * To change this template use Tools Options Coding Edit Standard Headers. */ using
More informationLISTING PROGRAM. // // TODO: Add constructor code after the InitializeComponent()
A- 1 LISTING PROGRAM Form1.cs (Pengirim) /* * Created by SharpDevelop. * User: Lia * Date: 3/13/2017 * Time: 9:43 PM * * To change this template use Tools Options Coding Edit Standard Headers. */ using
More informationLISTING PROGRAM. void KOMPRESIToolStripMenuItemClick(object sender, EventArgs e) { Kompresi k = new Kompresi(); k.show(); this.
A - 1 LISTING PROGRAM 1. Form Menu Utama using System; using System.Collections.Generic; using System.Drawing; using System.Windows.Forms; namespace KompresiCitra / / Description of MainForm.
More informationLISTING PROGRAM. // // TODO: Add constructor code after the InitializeComponent() call. //
1. MainForm.cs using System.Collections.Generic; using System.Drawing; LISTING PROGRAM / / Description of MainForm. / public partial class MainForm : Form public MainForm() The InitializeComponent()
More informationLISTING PROGRAM. com.example.jessicatamara.myapplication4;
A-1 LISTING PROGRAM MainActivity.java package import import import import import import com.example.jessicatamara.myapplication4; android.content.intent; android.support.v7.app.appcompatactivity; android.os.bundle;
More informationLISTING PROGRAM. // // TODO: Add constructor code after the InitializeComponent()
A-1 LISTING PROGRAM Form Mainform /* * Created by SharpDevelop. * User: Roni Anggara * Date: 5/17/2016 * Time: 8:52 PM * * To change this template use Tools Options Coding Edit Standard Headers. */ using
More informationLISTING PROGRAM. void FilteringToolStripMenuItemClick(object sender, EventAr s e) { Filtering a = new Filtering(); this.hide(); a.
130 LISTING PROGRAM 1. Mainform.cs using System; using System.Drawing; using System.Windows.Forms; namespace AnalisisPerbandinganFilertingdanDeteksiTepi public partial class MainForm : Form public MainForm()
More informationC = E(p) = (p + k) mod (n) p = D(C) = (C k) mod (n)
Substitutions ciphers (monoalphabetic) A substitution technique is one in which the characters of plaintext are replaced by other characters or by numbers or symbols. If the plaintext is viewed as a sequence
More information// Precondition: None // Postcondition: The address' name has been set to the // specified value set;
// File: Address.cs // This classes stores a typical US address consisting of name, // two address lines, city, state, and 5 digit zip code. using System; using System.Collections.Generic; using System.Linq;
More information% --- Executes on button press in btn_gsn. function btn_gsn_callback(hobject, eventdata, handles) GaussianSpeckleNoise close AiSoftware;
A-2 'gui_openingfcn', @AiSoftware_OpeningFcn,... 'gui_outputfcn', @AiSoftware_OutputFcn,... 'gui_layoutfcn', [],... 'gui_callback', []); if nargin && ischar(varargin{1}) gui_state.gui_callback = str2func(varargin{1});
More information// Program 2 - Extra Credit // CIS // Spring // Due: 3/11/2015. // By: Andrew L. Wright. //Edited by : Ben Spalding
// Program 2 - Extra Credit // CIS 200-01 // Spring 2015 // Due: 3/11/2015 // By: Andrew L. Wright //Edited by : Ben Spalding // File: Prog2Form.cs // This class creates the main GUI for Program 2. It
More informationComputer measurement and control
Computer measurement and control Instructors: András Magyarkuti, Zoltán Kovács-Krausz BME TTK, Department of Physics 2017/2018 spring semester Copyright 2008-2018 András Magyarkuti, Attila Geresdi, András
More informationStep 1: Start a GUI Project. Start->New Project->Visual C# ->Windows Forms Application. Name: Wack-A-Gopher. Step 2: Add Content
Step 1: Start a GUI Project Start->New Project->Visual C# ->Windows Forms Application Name: Wack-A-Gopher Step 2: Add Content Download the Content folder (content.zip) from Canvas and unzip in a location
More informationChapter 8 Advanced GUI Features
159 Chapter 8 Advanced GUI Features There are many other features we can easily add to a Windows C# application. We must be able to have menus and dialogs along with many other controls. One workhorse
More informationCALCULATOR APPLICATION
CALCULATOR APPLICATION Form1.cs using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms;
More informationLISTING CODE A-1. Indo_to_jawa_Fragments.java. package studio.arti.kamusjawaindonesia;
LISTING CODE A-1 Indo_to_jawa_Fragments.java package studio.arti.kamusjawaindonesia; import android.content.dialoginterface; import android.database.cursor; import android.database.sqlite.sqlitedatabase;
More informationAppendix A Programkod
Appendix A Programkod ProgramForm.cs using System; using System.Text; using System.Windows.Forms; using System.Net; using System.IO; using System.Text.RegularExpressions; using System.Collections.Generic;
More informationAn Implementation of RC4 + Algorithm and Zig-zag Algorithm in a Super Encryption Scheme for Text Security
Journal of Physics: Conference Series PAPER OPEN ACCESS An Implementation of RC4 + Algorithm and Zig-zag Algorithm in a Super Encryption Scheme for Text Security To cite this article: M A Budiman et al
More informationObject oriented lab /second year / review/lecturer: yasmin maki
1) Examples of method (function): Note: the declaration of any method is : method name ( parameters list ).. Method body.. Access modifier : public,protected, private. Return
More informationIn this lecture we will briefly examine a few new controls, introduce the concept of scope, random numbers, and drawing simple graphics.
Additional Controls, Scope, Random Numbers, and Graphics CS109 In this lecture we will briefly examine a few new controls, introduce the concept of scope, random numbers, and drawing simple graphics. Combo
More informationcreate database ABCD use ABCD create table bolumler ( bolumkodu int primary key, bolumadi varchar(20) )
create database ABCD use ABCD create table bolumler ( bolumkodu int primary key, bolumadi varchar(20) ) insert into bolumler values(1,'elektrik') insert into bolumler values(2,'makina') insert into bolumler
More informationHuw Talliss Data Structures and Variables. Variables
Data Structures and Variables Variables The Regex class represents a read-only regular expression. It also contains static methods that allow use of other regular expression classes without explicitly
More informationLAMPIRAN FORM 1 Universitas Sumatera Universitas Utara
LAMPIRAN FORM 1 Private Sub Text2_KeyPress(KeyAscii As Integer) If KeyAscii = vbkeyreturn Then Set tbladministrator = New ADODB.Recordset With tbladministrator.open "SELECT * FROM Administrator WHERE userid
More informationC# Data Manipulation
C# Data Manipulation Hans-Wolfgang Loidl School of Mathematical and Computer Sciences, Heriot-Watt University, Edinburgh Semester 1 2018/19 H-W. Loidl (Heriot-Watt Univ) F20SC/F21SC
More information%& # * + + *, - * - *. / $ / $ 0 $ 1 " + " +!" "!" #$ 2 * 3 4! #% &" #' * - #5-6$7.8)$ 68$ - $" -
!" #$ %& # '() * + + *, - * - *. / $ / $ 0 $ 1 () " + " +!" "!" #$ 2 * 3 4! #% # &" #' * - #5-6$7.8)$ 68$ - $" - () #* + + ) 9%: ) )) );" $
More informationC# Data Manipulation
C# Data Manipulation Hans-Wolfgang Loidl School of Mathematical and Computer Sciences, Heriot-Watt University, Edinburgh Semester 1 2018/19 H-W. Loidl (Heriot-Watt Univ) F20SC/F21SC
More informationListing Progam. Universitas Sumatera Utara
60 Listing Progam Listing Program Tabel Index
More informationChapter 14: Files and Streams
Chapter 14: Files and Streams Files and the File and Directory Temporary storage Classes Usually called computer memory or random access memory (RAM) Variables use temporary storage Volatile Permanent
More informationQuick Guide for the ServoWorks.NET API 2010/7/13
Quick Guide for the ServoWorks.NET API 2010/7/13 This document will guide you through creating a simple sample application that jogs axis 1 in a single direction using Soft Servo Systems ServoWorks.NET
More informationChapter 11. Data Files The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill
Chapter 11 Data Files McGraw-Hill 2010 The McGraw-Hill Companies, Inc. All rights reserved. Chapter Objectives Store and retrieve data in files using streams Save the values from a list box and reload
More informationIntroduction. Figure 1: Window Hierarchy. Clear Data. Exit Program. CoG Calculations. Dynamic Wheel Loads. Main. Open. Springs
Introduction This document sets out to explain the logic and methodologies used in programming the Suspension Calculator. Its aim iss to make it easy for the reader to understand the code, and to ensure
More informationAnnex B: Prototype Draft Model Code. April 30 th, 2015 Siamak Khaledi, Ankit Shah, Matthew Shoaf
Annex B: Prototype Draft Model Code April 30 th, 2015 Siamak Khaledi, Ankit Shah, Matthew Shoaf 1. Code Set: Prototype FTLADS Draft Model 1.1. Notes on Building the Wheel Draft Algorithm Based on the data
More informationSkinning Manual v1.0. Skinning Example
Skinning Manual v1.0 Introduction Centroid Skinning, available in CNC11 v3.15 r24+ for Mill and Lathe, allows developers to create their own front-end or skin for their application. Skinning allows developers
More informationVisual Basic/C# Programming (330)
Page 1 of 12 Visual Basic/C# Programming (330) REGIONAL 2017 Production Portion: Program 1: Calendar Analysis (400 points) TOTAL POINTS (400 points) Judge/Graders: Please double check and verify all scores
More informationIndustrial Programming
Industrial Programming Lecture 6: C# Data Manipulation Industrial Programming 1 The Stream Programming Model File streams can be used to access stored data. A stream is an object that represents a generic
More informationprivate void Form1_Load(object sender, EventArgs e) {
viii LAMPIRAN LISTING PROGRAM 1. Form Home using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using
More informationHow to create a simple ASP.NET page to create/search data on baan using baan logic from the BOBS client sample.
How to create a simple ASP.NET page to create/search data on baan using baan logic from the BOBS client sample. Author: Carlos Kassab Date: July/24/2006 First install BOBS(BaaN Ole Broker Server), you
More informationSilverlight memory board ( Part 2 )
Silverlight memory board ( Part 2 ) In the first part this tutorial we created a new Silverlight project and designed the user interface. In this part, we will add some code to the project to make the
More informationA comparative study of Message Digest 5(MD5) and SHA256 algorithm
Journal of Physics: Conference Series PAPER OPEN ACCESS A comparative study of Message Digest 5(MD5) and SHA256 algorithm To cite this article: D Rachmawati et al 208 J. Phys.: Conf. Ser. 978 026 View
More informationCSIS 1624 CLASS TEST 6
CSIS 1624 CLASS TEST 6 Instructions: Use visual studio 2012/2013 Make sure your work is saved correctly Submit your work as instructed by the demmies. This is an open-book test. You may consult the printed
More informationif (say==0) { k.commandtext = "Insert into kullanici(k_adi,sifre) values('" + textbox3.text + "','" + textbox4.text + "')"; k.
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Data.SqlClient;
More informationIST311 Chapter13.NET Files (Part2)
IST311 Chapter13.NET Files (Part2) using System; using System.Collections.Generic; using System.ComponentModel; using System.IO; using System.Linq; using System.Net; using System.Net.Sockets; using System.Text;
More informationTo start we will be using visual studio Start a new C# windows form application project and name it motivational quotes viewer
C# Tutorial Create a Motivational Quotes Viewer Application in Visual Studio In this tutorial we will create a fun little application for Microsoft Windows using Visual Studio. You can use any version
More informationUsing Template Bookmarks for Automating Microsoft Word Reports
Using Template Bookmarks for Automating Microsoft Word Reports Darryl Bryk U.S. Army RDECOM-TARDEC Warren, MI 48397 Disclaimer: Reference herein to any specific commercial company, product, process, or
More informationFor this example, we will set up a small program to display a picture menu for a fast food take-away shop.
146 Programming with C#.NET 9 Fast Food This program introduces the technique for uploading picture images to a C# program and storing them in a database table, in a similar way to text or numeric data.
More informationKillTest. 半年免费更新服务
KillTest 质量更高 服务更好 学习资料 http://www.killtest.cn 半年免费更新服务 Exam : 70-502 (C#) Title : TS: Microsoft.NET Framework 3.5 Windows Presentation Foundation Version : Demo 1 / 15 1. You are creating a Windows Presentation
More informationTeam project 2017 Dony Pratidana S. Hum Bima Agus Setyawan S. IIP
Hak cipta dan penggunaan kembali: Lisensi ini mengizinkan setiap orang untuk menggubah, memperbaiki, dan membuat ciptaan turunan bukan untuk kepentingan komersial, selama anda mencantumkan nama penulis
More informationCIS 3260 Intro to Programming in C#
Iteration (looping) McGraw-Hill 2010 The McGraw-Hill Companies, Inc. All rights reserved. Understand the necessity of this program control structure Describe while loops Describe do while loops Describe
More informationXNA 4.0 RPG Tutorials. Part 24. Level Editor Continued
XNA 4.0 RPG Tutorials Part 24 Level Editor Continued I'm writing these tutorials for the new XNA 4.0 framework. The tutorials will make more sense if they are read in order. You can find the list of tutorials
More information05/31/2009. Data Files
Data Files Store and retrieve data in files using streams Save the values from a list box and reload for the next program run Check for the end of file Test whether a file exists Display the standard Open
More informationCSC 355 PROJECT 4 NETWORKED TIC TAC TOE WITH WPF INTERFACE
CSC 355 PROJECT 4 NETWORKED TIC TAC TOE WITH WPF INTERFACE GODFREY MUGANDA In this project, you will write a networked application for playing Tic Tac Toe. The application will use the.net socket classes
More informationEyes of the Dragon - XNA Part 37 Map Editor Revisited
Eyes of the Dragon - XNA Part 37 Map Editor Revisited I'm writing these tutorials for the XNA 4.0 framework. Even though Microsoft has ended support for XNA it still runs on all supported operating systems
More informationSub To Srt Converter. This is the source code of this program. It is made in C# with.net 2.0.
Sub To Srt Converter This is the source code of this program. It is made in C# with.net 2.0. form1.css /* * Name: Sub to srt converter * Programmer: Paunoiu Alexandru Dumitru * Date: 5.11.2007 * Description:
More informationDuhok Polytechnic University Amedi Technical Institute/ IT Dept. Halkawt Rajab Hussain
Duhok Polytechnic University Amedi Technical Institute/ IT Dept. By Halkawt Rajab Hussain 2016-04-02 String and files: String declaration and initialization. Strings and Char Arrays: Properties And Methods.
More informationpojedinačnom elementu niza se pristupa imeniza[indeks] indeks od 0 do n-1
NIZOVI Niz deklarišemo navođenjemtipa elemenata za kojim sledi par srednjih zagrada[] i naziv niza. Ako je niz višedimenzionalni između zagrada[] se navode zarezi, čiji je broj za jedan manji od dimenzija
More information1 de :02
1 de 6 02-12-2005 18:02!" $%$&&$ ' ( ) ) * +,"* (-)( )(*) ) ). /) %) ( ( -( *)% ) (0 ( " ' * ) *) *)(%* % ) (!%12%! ( ) ( ( )*)3 *) ( *(-)( %. )(( ) *(!() 2 ( (6 &)*7 8 ( 1( -(! ", % ' ( *.() (%) )() (
More informationLISTING PROGRAM. 1. Tampilan Awal. 2. Menu Login. Public Class Awal
LISTING PROGRAM 1. Tampilan Awal Public Class Awal Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick ProgressBar1.Increment(10) If ProgressBar1.Value
More information> ADO.NET: ActiveX Data Objects for.net, set of components used to interact with any DB/ XML docs
> ADO.NET: ActiveX Data Objects for.net, set of components used to interact with any DB/ XML docs It supports 2 models for interacting with the DB: 1. Disconnected Model 2. Connection Oriented Model Note:
More information} } public void getir() { DataTable dt = vt.dtgetir("select* from stok order by stokadi");
Form1 using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms;
More informationYou can call the project anything you like I will be calling this one project slide show.
C# Tutorial Load all images from a folder Slide Show In this tutorial we will see how to create a C# slide show where you load everything from a single folder and view them through a timer. This exercise
More informationCSC Java Programming, Fall Java Data Types and Control Constructs
CSC 243 - Java Programming, Fall 2016 Java Data Types and Control Constructs Java Types In general, a type is collection of possible values Main categories of Java types: Primitive/built-in Object/Reference
More informationLampiran 2 MASTER TABEL
64 Lampiran 2 MASTER TABEL No. No. Responden Umur Pendidikan Pekerjaan Paritas Kanker 1 427363 35 S1 PNS 4 Tidak 2 504024 36 SMA IRT 4 Tidak 3 500316 35 SMA IRT 5 Tidak 4 504014 35 SMA PNS 1 Tidak 5 447158
More informationRepeating Instructions. C# Programming: From Problem Analysis to Program Design 2nd Edition. David McDonald, Ph.D. Director of Emerging Technologies
6 Repeating Instructions C# Programming: From Problem Analysis to Program Design 2nd Edition David McDonald, Ph.D. Director of Emerging Technologies Chapter Objectives Learn why programs use loops Write
More informationFiles and Streams. Today you will learn. Files and Web Applications File System Information Reading and Writing with Streams Allowing File Uploads
Files and Streams Today you will learn Files and Web Applications File System Information Reading and Writing with Streams Allowing File Uploads CSE 409 Advanced Internet Technology Files and Web Applications
More informationLAMPIRAN A LISTINGPROGRAM
LAMPIRAN A LISTINGPROGRAM 1. Form Utama (myprogram.fig) function varargout = myprogram(varargin) gui_singleton = 1; gui_state = struct('gui_name', mfilename,... 'gui_singleton', gui_singleton,... 'gui_openingfcn',
More informationObjectives : 1) To study the typical design of a LCD module 2) To interface the digital display unit through parallel printer port using C# program.
Experiment 6 : Digital Display (Liquid Crystal Display) Objectives : 1) To study the typical design of a LCD module 2) To interface the digital display unit through parallel printer port using C# program.
More informationCSCE 206: Structured Programming in C++
CSCE 206: Structured Programming in C++ 2017 Spring Exam 2 Monday, March 20, 2017 Total - 100 Points B Instructions: Total of 13 pages, including this cover and the last page. Before starting the exam,
More informationEngr 123 April 25, 2018 Final Exam Review. 3. Write a method which will accept a string and return the number of three-letter words in the string.
Engr 123 April 25, 2018 Final Exam Review Final Exam is Monday April 30, 2018 at 8:00am 1. Write a method named EvenOdd which will accept a string and a bool as arguments. If the bool is true the method
More informationAgenda. The main body and cout. Fundamental data types. Declarations and definitions. Control structures
The main body and cout Agenda 1 Fundamental data types Declarations and definitions Control structures References, pass-by-value vs pass-by-references The main body and cout 2 C++ IS AN OO EXTENSION OF
More informationLinked List using a Sentinel
Linked List using a Sentinel Linked List.h / Linked List.h Using a sentinel for search Created by Enoch Hwang on 2/1/10. Copyright 2010 La Sierra University. All rights reserved. / #include
More informationSEBARAN MATAKULIAH PROGRAM STUDI SARJANA TEKNIK SIPIL (S1) DI JURUSAN TEKNIK SIPIL UNIVERSITAS LAMPUNG
Saturday, November 00 0: - Last Updated Saturday, November 00 0:5 SEBARAN MATAKULIAH PROGRAM STUDI SARJANA TEKNIK SIPIL (S) DI JURUSAN TEKNIK SIPIL UNIVERSITAS LAMPUNG SEMESTER I (SEMESTER GANJIL) KODE
More informationHow to read/write text file
How to read/write text file Contents Use StreamWriter... 1 Create button click event handler... 2 Create StreamWriter... 3 Write to file... 5 Close file... 8 Test file writing... 9 Use StreamReader...
More informationEnd Sub. Sub Kunci() Dim i As Integer For i = 0 To 4 Txtfield(i).Locked = True Next i grddatagrid.enabled = False End Sub
Source Aplikasi Sistem Informasi Akademik GENERAL Dim db As Connection Dim WithEvents adoprimaryrs1 As Recordset Dim WithEvents adoprimaryrs2 As Recordset Dim WithEvents rscaridata As Recordset Dim cekid
More informationLISTING PROGRAM. //Find the maximum and minimum values in the array int maxvalue = integers[0]; //start with first element int minvalue = integers[0];
1 LISTING PROGRAM using System; using System.Collections.Generic; using System.Linq; using System.Windows.Forms; namespace SortingApplication static class Program / / The main entry point for
More informationWindows File I/O. Files. Collections of related data stored on external storage media and assigned names so that they can be accessed later
Windows File I/O Files Collections of related data stored on external storage media and assigned names so that they can be accessed later Entire collection is a file A file is made up of records One record
More informationAnswer on Question# Programming, C#
Answer on Question#38723 - Programming, C# 1. The development team of SoftSols Inc. has revamped the software according to the requirements of FlyHigh Airlines and is in the process of testing the software.
More informationRadius= 10 cm, Color= Red, Weight= 200g, X= 3m, Y= 5m, Z= 2m. Radius= 10 cm, Color= Blue, Weight= 200g, X= 3m, Y= 5m, Z= 0m
C# property method Radius= 10 cm, Color= Red, Weight= 200g, X= 3m, Y= 5m, Z= 0m Radius= 10 cm, Color= Red, Weight= 200g, X= 3m, Y= 5m, Z= 2m Radius= 10 cm, Color= Blue, Weight= 200g, X= 3m, Y= 5m, Z= 0m
More informationWe are going to use some graphics and found a nice little batman running GIF, off course you can use any image you want for the project.
C# Tutorial - Create a Batman Gravity Run Game Start a new project in visual studio and call it gravityrun It should be a windows form application with C# Click OK Change the size of the to 800,300 and
More informationComputers, Variables and Types. Engineering 1D04, Teaching Session 2
Computers, Variables and Types Engineering 1D04, Teaching Session 2 Typical Computer Copyright 2006 David Das, Ryan Lortie, Alan Wassyng 1 An Abstract View of Computers Copyright 2006 David Das, Ryan Lortie,
More informationConsole.ReadLine(); }//Main
IST 311 Lecture Notes Chapter 13 IO System using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Net; using System.Net.Sockets; using System.Text; using System.Threading.Tasks;
More informationEvents. Event Handler Arguments 12/12/2017. EEE-425 Programming Languages (2016) 1
Events Events Single Event Handlers Click Event Mouse Events Key Board Events Create and handle controls in runtime An event is something that happens. Your birthday is an event. An event in programming
More informationLISTING PROGRAM. if nargout [varargout{1:nargout}] = gui_mainfcn(gui_state, varargin{:}); else gui_mainfcn(gui_state, varargin{:}); end
A-1 LISTING PROGRAM 1. Form Cover function varargout = cover(varargin) gui_singleton = 1; gui_state = struct('gui_name', mfilename,... 'gui_singleton', gui_singleton,... 'gui_openingfcn', @cover_openingfcn,...
More informationAPÉNDICE J. CÓDIGO DEL ARCHIVO FORM1.CS EN LENGUAJE C# Comprende:
APÉNDICE J. CÓDIGO DEL ARCHIVO FORM1.CS EN LENGUAJE C# Comprende: Interfaz gráfica de wiimocap. Obtención de las variables de los tres acelerómetros. Algoritmos de reconocimiento de posiciones. Inclinación
More informationINFORMATION SYSTEM OF LIBRARY AT PONDOK PESANTREN DARUL IHSAN MUHAMMADIYAH SRAGEN
INFORMATION SYSTEM OF LIBRARY AT PONDOK PESANTREN DARUL IHSAN MUHAMMADIYAH SRAGEN PUBLIKASI ILMIAH This Final Project is Compiled as a Condition to Complete Bachelor Degree Program at Department of Informatics
More informationPhiladelphia University Faculty of Information Technology. Visual Programming. Using C# -Work Sheets-
Philadelphia University Faculty of Information Technology Visual Programming Using C# -Work Sheets- Prepared by: Dareen Hamoudeh Eman Al Naji 2018 Work Sheet 1 Hello World! 1. Create a New Project, Name
More informationAffordable, Flexible, and Modular: a Guide to Open-Source. Membrane-Based Water Treatment Systems. Appendix C
Electronic Supplementary Material (ESI) for Environmental Science: Water Research & Technology. This journal is The Royal Society of Chemistry 2016 Affordable, Flexible, and Modular: a Guide to Open-Source
More informationClass Test 5. Create a simple paint program that conforms to the following requirements.
Class Test 5 Question 1 Use visual studio 2012 ultimate to create a C# windows forms application. Create a simple paint program that conforms to the following requirements. The control box is disabled
More informationC# Continued. Learning Objectives:
Learning Objectives: C# Continued Open File Dialog and Save File Dialog File Input/Output Importing Pictures from Files and saving Bitmaps Reading and Writing Text Files Try and Catch Working with Strings
More informationClass Test 3. Question 1
Class Test 3 Question 1 Create a windows forms application in CSEC that asks the user for his name and age that he/she will be this year. Calculate the year the user was born in and use a messagebox to
More information