LISTING PROGRAM. namespace vigenere_des { public partial class MainPage : PhoneApplicationPage { public MainPage() { InitializeComponent(); }

Size: px
Start display at page:

Download "LISTING PROGRAM. namespace vigenere_des { public partial class MainPage : PhoneApplicationPage { public MainPage() { InitializeComponent(); }"

Transcription

1 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; using Microsoft.Phone.Controls; using Microsoft.Phone.Shell; using vigenere_des.resources; namespace vigenere_des public partial class MainPage : PhoneApplicationPage public MainPage() InitializeComponent(); private void Button_Click(object sender, RoutedEventArgs e) Application.Current.Terminate(); private void Button_Click_1(object sender, RoutedEventArgs e) NavigationService.Navigate(new Uri("/Page1.xaml", UriKind.RelativeOrAbsolute)); private void Button_Click_2(object sender, RoutedEventArgs e) NavigationService.Navigate(new Uri("/Page2.xaml", UriKind.RelativeOrAbsolute)); private void Button_Click_3(object sender, RoutedEventArgs e) NavigationService.Navigate(new Uri("/Page3.xaml", UriKind.RelativeOrAbsolute)); private void Button_Click_4(object sender, RoutedEventArgs e) NavigationService.Navigate(new Uri("/Page4.xaml", UriKind.RelativeOrAbsolute));

2 60 Form Buat Pesan : using System; using System.IO; using System.Collections.Generic; using System.Linq; using System.Net; using System.Windows; using System.Windows.Controls; using System.Windows.Navigation; using Microsoft.Phone.Controls; using Microsoft.Phone.Shell; using Microsoft.Phone.UserData; using System.Security.Cryptography; using System.Text; using Microsoft.Phone.Tasks; namespace vigenere_des public partial class Page3 : PhoneApplicationPage public Page3() InitializeComponent(); string enkripsiv(string pesan, string kunci) int pjgkunci = kunci.length; int pjgpesan = pesan.length; string hasil = ""; for (int i = 0; i < pjgpesan; i++) hasil = hasil + Convert.ToChar((((int)pesan[i] + (int)kunci[i % (pjgkunci)]) % 95) + 32); return hasil; private void Button2_Click(object sender, RoutedEventArgs e) string message = plaint.text; string key = plaink.text; ciphert.text = enkripsiv(message, key); private void Button3_Click(object sender, RoutedEventArgs e) Cryptographer cryptographer = new Cryptographer(Algorithms.DES); cipherk.text = cryptographer.encryptionstart(plaink.text, desk.text.toupper(), false);

3 61 private void Button4_Click(object sender, RoutedEventArgs e) SmsComposeTask smscomposetask = new SmsComposeTask(); smscomposetask.to = buku_telepon.text; smscomposetask.body = ciphert.text; smscomposetask.show(); e) string data; private void txtname_gotfocus(object sender, RoutedEventArgs TextBox t = sender as TextBox; data = t.text; t.text = string.empty; e) private void txtname_lostfocus(object sender, RoutedEventArgs TextBox t = sender as TextBox; if (t.text.equals(string.empty)) t.text = data; private void Button1_Click(object sender, RoutedEventArgs e) Contacts cons = new Contacts(); cons.searchcompleted += new EventHandler<ContactsSearchEventArgs>(Contacts_SearchCompleted); cons.searchasync(string.empty, FilterKind.None, "Contacts Test #1"); void Contacts_SearchCompleted(object sender, ContactsSearchEventArgs e) System.Text.StringBuilder sb = new System.Text.StringBuilder(); foreach (Contact con in e.results) sb.appendline(con.displayname); MessageBox.Show(sb.ToString());

4 62 Form Dekrip Pesan : using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Windows; using System.Windows.Controls; using System.Windows.Navigation; using Microsoft.Phone.Controls; using Microsoft.Phone.Shell; namespace vigenere_des public partial class Page4 : PhoneApplicationPage public Page4() InitializeComponent(); string dekripsiv(string pesan, string kunci) int pjgkunci = kunci.length; int pjgpesan = pesan.length; string hasil = ""; for (int i = 0; i < pjgpesan; i++) if ((((int)pesan[i] - 32) - (int)kunci[i % (pjgkunci - 1)]) < -63) hasil = hasil + Convert.ToChar((((int)pesan[i] - 32) - (int)kunci[i % (pjgkunci)]) + 190); else if ((((int)pesan[i] - 32) - (int)kunci[i % (pjgkunci - 1)]) < 32) hasil = hasil + Convert.ToChar((((int)pesan[i] - 32) - (int)kunci[i % (pjgkunci)]) + 95); else hasil = hasil + Convert.ToChar((((int)pesan[i] - 32) - (int)kunci[i % (pjgkunci)]) % 95); return hasil; private void Button3_Click(object sender, RoutedEventArgs e) string message = ciphert1.text; string key = plaink1.text; plaint1.text = dekripsiv(message, key); private void Button2_Click(object sender, RoutedEventArgs e)

5 63 Cryptographer cryptographer = new Cryptographer(Algorithms.DES); plaink1.text = cryptographer.decryptionstart(cipherk1.text, desk.text.toupper(), false); private void plaint_textchanged(object sender, TextChangedEventArgs e) e) string data; private void txtname_gotfocus(object sender, RoutedEventArgs TextBox t = sender as TextBox; data = t.text; t.text = string.empty; e) private void txtname_lostfocus(object sender, RoutedEventArgs TextBox t = sender as TextBox; if (t.text.equals(string.empty)) t.text = data; Class Algorithms.cs : using System; using System.Collections.Generic; using System.Text; namespace vigenere_des class Algorithms public static readonly int DES = 0;

6 64 Class Cryptographer.cs : using System; using System.Collections.Generic; using System.Text; using System.Threading; namespace vigenere_des class Cryptographer CommonProcess cprocess = null; public Cryptographer(int algorithm_number) if (Algorithms.DES == algorithm_number) cprocess = new DES.ProcessDES(); public string EncryptionStart(string text, string key, bool IsBinary) return cprocess.encryptionstart(text, key, IsBinary); public string DecryptionStart(string text, string key, bool IsBinary) return cprocess.decryptionstart(text, key, IsBinary); Class Commonprocess.cs : using System; using System.Collections.Generic; using System.Text; namespace vigenere_des abstract class CommonProcess public abstract string EncryptionStart(string text, string key, bool IsTextBinary); public abstract string DecryptionStart(string text, string key, bool IsTextBinary);

7 65 Class DESData.cs : using System; using System.Collections.Generic; using System.Text; namespace vigenere_des.des #region tabel permutasi class DESData public static readonly int[] pc_1 = 57, 49, 41, 33, 25, 17, 9, 1, 58, 50, 42, 34, 26, 18, 10, 2, 59, 51, 43, 35, 27, 19, 11, 3, 60, 52, 44, 36, 63, 55, 47, 39, 31, 23, 15, 7, 62, 54, 46, 38, 30, 22, 14, 6, 61, 53, 45, 37, 29, 21, 13, 5, 28, 20, 12, 4 ; public static readonly int[] pc_2 = 14, 17, 11, 24, 1, 5, 3, 28, 15, 6, 21, 10, 23, 19, 12, 4, 26, 8, 16, 7, 27, 20, 13, 2, 41, 52, 31, 37, 47, 55, 30, 40, 51, 45, 33, 48, 44, 49, 39, 56, 34, 53, 46, 42, 50, 36, 29, 32 ; public static readonly int[] ip = 58, 50, 42, 34, 26, 18, 10, 2, 60, 52, 44, 36, 28, 20, 12, 4, 62, 54, 46, 38, 30, 22, 14, 6, 64, 56, 48, 40, 32, 24, 16, 8, 57, 49, 41, 33, 25, 17, 9, 1, 59, 51, 43, 35, 27, 19, 11, 3, 61, 53, 45, 37, 29, 21, 13, 5, 63, 55, 47, 39, 31, 23, 15, 7 ; public static readonly int[] ip_1 = 40, 8, 48, 16, 56, 24, 64, 32, 39, 7, 47, 15, 55, 23, 63, 31, 38, 6, 46, 14, 54, 22, 62, 30, 37, 5, 45, 13, 53, 21, 61, 29, 36, 4, 44, 12, 52, 20, 60, 28, 35, 3, 43, 11, 51, 19, 59, 27, 34, 2,

8 66 33, 1, 41, 9, 42, 10, 50, 18, 58, 26, 49, 17, 57, 25 ; public static readonly int[] pc_e = 32, 1, 2, 3, 4, 5, 4, 5, 6, 7, 8, 9, 8, 9, 10, 11, 12, 13, 12, 13, 14, 15, 16, 17, 16, 17, 18, 19, 20, 21, 20, 21, 22, 23, 24, 25, 24, 25, 26, 27, 28, 29, 28, 29, 30, 31, 32, 1 ; public static readonly int[] pc_p = 16, 7, 20, 21, 29, 12, 28, 17, 1, 15, 23, 26, 5, 18, 31, 10, 2, 8, 24, 14, 32, 27, 3, 9, 19, 13, 30, 6, 22, 11, 4, 25 ; public static readonly int[] nrofshifts = 0, 1, 1, 2, 2, 2, 2, 2, 2, 1, 2, 2, 2, 2, 2, 2, 1 ; public static List<int[,]> sboxes = new List<int[,]>(); static DESData() sboxes.add(s1); sboxes.add(s2); sboxes.add(s3); sboxes.add(s4); sboxes.add(s5); sboxes.add(s6); sboxes.add(s7); sboxes.add(s8); public static readonly int[,] s1 = 14, 4, 13, 1, 2, 15, 11, 8, 3, 10, 6, 12, 5, 9, 0, 7, 0, 15, 7, 4, 14, 2, 13, 1, 10, 6, 12, 11, 9, 5, 3, 8, 4, 1, 14, 8, 13, 6, 2, 11, 15, 12, 9, 7, 3, 10, 5, 0, 15, 12, 8, 2, 4, 9, 1, 7, 5, 11, 3, 14, 10, 0, 6, 13 ; public static readonly int[,] s2 = 15, 1, 8, 14, 6, 11, 3, 4, 9, 7, 2, 13, 12, 0, 5, 10, 3, 13, 4, 7, 15, 2, 8, 14, 12, 0, 1, 10, 6, 9, 11, 5, 0, 14, 7, 11, 10, 4, 13, 1, 5, 8, 12, 6, 9, 3, 2, 15, 13, 8, 10, 1, 3, 15, 4, 2, 11, 6, 7, 12, 0, 5, 14, 9 ;

9 67 public static readonly int[,] s3 = 10, 0, 9, 14, 6, 3, 15, 5, 1, 13, 12, 7, 11, 4, 2, 8, 13, 7, 0, 9, 3, 4, 6, 10, 2, 8, 5, 14, 12, 11, 15, 1, 13, 6, 4, 9, 8, 15, 3, 0, 11, 1, 2, 12, 5, 10, 14, 7, 1, 10, 13, 0, 6, 9, 8, 7, 4, 15, 14, 3, 11, 5, 2, 12 ; public static readonly int[,] s4 = 7, 13, 14, 3, 0, 6, 9, 10, 1, 2, 8, 5, 11, 12, 4, 15, 13, 8, 11, 5, 6, 15, 0, 3, 4, 7, 2, 12, 1, 10, 14, 9, 10, 6, 9, 0, 12, 11, 7, 13, 15, 1, 3, 14, 5, 2, 8, 4, 3, 15, 0, 6, 10, 1, 13, 8, 9, 4, 5, 11, 12, 7, 2, 14 ; public static readonly int[,] s5 = 2, 12, 4, 1, 7, 10, 11, 6, 8, 5, 3, 15, 13, 0, 14, 9, 14, 11, 2, 12, 4, 7, 13, 1, 5, 0, 15, 10, 3, 9, 8, 6, 4, 2, 1, 11, 10, 13, 7, 8, 15, 9, 12, 5, 6, 3, 0, 14, 11, 8, 12, 7, 1, 14, 2, 13, 6, 15, 0, 9, 10, 4, 5, 3 ; public static readonly int[,] s6 = 12, 1, 10, 15, 9, 2, 6, 8, 0, 13, 3, 4, 14, 7, 5, 11, 10, 15, 4, 2, 7, 12, 9, 5, 6, 1, 13, 14, 0, 11, 3, 8, 9, 14, 15, 5, 2, 8, 12, 3, 7, 0, 4, 10, 1, 13, 11, 6, 4, 3, 2, 12, 9, 5, 15, 10, 11, 14, 1, 7, 6, 0, 8, 13 ; public static readonly int[,] s7 = 4, 11, 2, 14, 15, 0, 8, 13, 3, 12, 9, 7, 5, 10, 6, 1, 13, 0, 11, 7, 4, 9, 1, 10, 14, 3, 5, 12, 2, 15, 8, 6, 1, 4, 11, 13, 12, 3, 7, 14, 10, 15, 6, 8, 0, 5, 9, 2, 6, 11, 13, 8, 1, 4, 10, 7, 9, 5, 0, 15, 14, 2, 3, 12 ; public static readonly int[,] s8 = 13, 2, 8, 4, 6, 15, 11, 1, 10, 9, 3, 14, 5, 0, 12, 7, 1, 15, 13, 8, 10, 3, 7, 4, 12, 5, 6, 11, 0, 14, 9, 2, 7, 11, 4, 1, 9, 12, 14, 2, 0, 6, 10, 13, 15, 3, 5, 8, 2, 1, 14, 7, 4, 10, 8, 13, 15, 12, 9, 0, 3, 5, 6, 11 ;

10 68 #region pembuatan kelas kunci class Keys public string[] Cn = new string[17]; public string[] Dn = new string[17]; public string[] Kn = new string[16]; Class ProcessDES.cs : using System; using System.Collections.Generic; using System.Text; namespace vigenere_des.des class ProcessDES : CommonProcess public ProcessDES() #region proses enkripsi public override string EncryptionStart(string text, string key, bool IsTextBinary) #region pengambilan 16 kunci string binary_key = this.fromtexttobinary(key); string key_plus = this.dopermutation(binary_key, DESData.pc_1); string C0 = "", D0 = ""; C0 = this.setlefthalveskey(key_plus); D0 = this.setrighthalveskey(key_plus); Keys keys = this.setallkeys(c0, D0); #region proses enkripsi string binarytext = ""; if (IsTextBinary == false) binarytext = this.fromtexttobinary(text); else binarytext = text;

11 69 binarytext = this.settextmutipleof64bits(binarytext); StringBuilder EncryptedTextBuilder = new StringBuilder(binaryText.Length); for (int i = 0; i < (binarytext.length / 64); i++) string PermutatedText = this.dopermutation(binarytext.substring(i * 64, 64), DESData.ip); string L0 = "", R0 = ""; L0 = this.setlefthalveskey(permutatedtext); R0 = this.setrighthalveskey(permutatedtext); false); string FinalText = this.finalencription(l0, R0, keys, string selesai = BinaryStringToHexString(FinalText); EncryptedTextBuilder.Append(selesai); return EncryptedTextBuilder.ToString(); #region proses dekripsi public override string DecryptionStart(string text, string key, bool IsTextBinary) #region pengambilan 16 kunci string binary_key = this.fromtexttobinary(key); string key_plus = this.dopermutation(binary_key, DESData.pc_1); string C0 = "", D0 = ""; C0 = this.setlefthalveskey(key_plus); D0 = this.setrighthalveskey(key_plus); Keys keys = this.setallkeys(c0, D0); #region proses dekripsi string binarytext = ""; if (IsTextBinary == false) binarytext = this.fromhextobinary(text); else

12 70 binarytext = text; binarytext = this.settextmutipleof64bits(binarytext); StringBuilder DecryptedTextBuilder = new StringBuilder(binaryText.Length); for (int i = 0; i < (binarytext.length / 64); i++) string PermutatedText = this.dopermutation(binarytext.substring(i * 64, 64), DESData.ip); string L0 = "", R0 = ""; L0 = this.setlefthalveskey(permutatedtext); R0 = this.setrighthalveskey(permutatedtext); true); string FinalText = this.finalencription(l0, R0, keys, string selesai = FromBinaryToText(FinalText); DecryptedTextBuilder.Append(selesai); 8 + 1); return DecryptedTextBuilder.ToString(); public static string BinaryStringToHexString(string binary) StringBuilder result = new StringBuilder(binary.Length / 8, '0'); int mod4len = binary.length % 8; if (mod4len!= 0) binary = binary.padleft(((binary.length / 8) + 1) * for (int i = 0; i < binary.length; i += 8) string eightbits = binary.substring(i, 8); result.appendformat("0:x2", Convert.ToByte(eightBits, 2)); return result.tostring(); #region mengubah biner menjadi ascii public string FromBinaryToText(string binarystring) StringBuilder text = new StringBuilder(binarystring.Length / 8);

13 71 for (int i = 0; i < (binarystring.length / 8); i++) string word = binarystring.substring(i * 8, 8); text.append((char)convert.toint32(word, 2)); return text.tostring(); #region pembagian teks menjadi 64 bit public string settextmutipleof64bits(string text) if ((text.length % 64)!= 0) int maxlength = 0; maxlength = ((text.length / 64) + 1) * 64; text = text.padright(maxlength, '0'); return text; #region mengubah ASCII menjadi biner public string FromTextToBinary(string text) StringBuilder binarystring = new StringBuilder(text.Length * 8); foreach (char word in text) int binary = (int)word; int factor = 128; for (int i = 0; i < 8; i++) if (binary >= factor) binary -= factor; binarystring.append("1"); else binarystring.append("0"); factor /= 2; return binarystring.tostring(); 0."); public static string FromDeciamlToBinary(int binary) if (binary < 0) Console.WriteLine("It requires a integer greater than return null;

14 72 string binarystring = ""; int factor = 128; for (int i = 0; i < 8; i++) if (binary >= factor) binary -= factor; binarystring += "1"; else binarystring += "0"; factor /= 2; return binarystring; public static byte FromBinaryToByte(string binary) byte value = 0; int factor = 128; for (int i = 0; i < 8; i++) if (binary[i] == '1') value += (byte)factor; factor /= 2; return value; #region mengubah heksa ke biner public string FromHexToBinary(string hexstring) string binarystring = ""; try for (int i = 0; i < hexstring.length; i++) int hex = Convert.ToInt32(hexstring[i].ToString(), 16); int factor = 8; for(int j=0; j<4; j++) if (hex >= factor) hex -= factor;

15 73 format."); binarystring += "1"; else binarystring += "0"; factor /= 2; catch (Exception e) Console.WriteLine(e.Message + " - wrong hexa integer return binarystring; #region perulangan public string DoPermutation(string text, int[] order) StringBuilder PermutatedText = new StringBuilder(order.Length); for (int i = 0; i < order.length; i++) PermutatedText.Append(text[order[i] - 1]); return PermutatedText.ToString(); //untuk S box public string DoPermutation(string text, int[,] order) string PermutatedText = ""; int rowindex = Convert.ToInt32(text[0].ToString() + text[text.length - 1].ToString(), 2); int colindex = Convert.ToInt32(text.Substring(1, 4), 2); PermutatedText = ProcessDES.FromDeciamlToBinary(order[rowIndex, colindex]); return PermutatedText; #region memecah blok menjadi kiri dan kanan public string SetLeftHalvesKey(string text) return this.sethalveskey(true, text); public string SetRightHalvesKey(string text) return this.sethalveskey(false, text);

16 74 public string SetHalvesKey(bool IsLeft, string text) if ((text.length % 8)!= 0) Console.WriteLine("The key is not multiple of 8bit."); return null; int midindex = (text.length / 2) - 1; string result = ""; if (IsLeft) result = text.substring(0, midindex + 1); else result = text.substring(midindex + 1); return result; #region pergeseran ke kiri public string LeftShift(string text) return this.leftshift(text, 1); public string LeftShift(string text, int count) if (count < 1) Console.WriteLine("The count of leftshift is must more than 1 time."); return null; string temp = text.substring(0, count); StringBuilder shifted = new StringBuilder(text.Length); shifted.append(text.substring(count) + temp); return shifted.tostring(); #region pengmabilan semua kunci public Keys SetAllKeys(string C0, string D0) Keys keys = new Keys(); keys.cn[0] = C0; keys.dn[0] = D0; for (int i = 1; i < keys.cn.length; i++)

17 75 keys.cn[i] = this.leftshift(keys.cn[i - 1], DESData.nrOfShifts[i]); keys.dn[i] = this.leftshift(keys.dn[i - 1], DESData.nrOfShifts[i]); keys.kn[i - 1] = this.dopermutation(keys.cn[i] + keys.dn[i], DESData.pc_2); return keys; #region enkripsi public string FinalEncription(string L0, string R0, Keys keys, bool IsReverse) string Ln = "", Rn = "", Ln_1 = L0, Rn_1 = R0; int i = 0; if (IsReverse == true) i = 15; while (this.isenough(i, IsReverse)) Ln = Rn_1; Rn = this.xor(ln_1, this.f(rn_1, keys.kn[i])); Ln_1 = Ln; Rn_1 = Rn; if (IsReverse == false) i += 1; else i -= 1; string R16L16 = Rn + Ln; string Encripted_Text = this.dopermutation(r16l16, DESData.ip_1); return Encripted_Text; public bool IsEnough(int i, bool IsReverse) return (IsReverse == false)? i < 16 : i >= 0; #region fungsi f public string f(string Rn_1, string Kn)

18 76 string E_Rn_1 = this.e_selection(rn_1); string XOR_Rn_1_Kn = this.xor(e_rn_1, Kn); string sboxedtext = this.sbox_transform(xor_rn_1_kn); string P_sBoxedText = this.p(sboxedtext); return P_sBoxedText; #region fungsi P public string P(string text) string PermutatedText = ""; PermutatedText = this.dopermutation(text, DESData.pc_p); return PermutatedText; #region transformasi s box public string sbox_transform(string text) StringBuilder TransformedText = new StringBuilder(32); for (int i = 0; i < 8; i++) string temp = text.substring(i * 6, 6); TransformedText.Append(this.DoPermutation(temp, DESData.sBoxes[i])); return TransformedText.ToString(); #region pemilihan E public string E_Selection(string Rn_1) string ExpandedText = this.dopermutation(rn_1, DESData.pc_e); return ExpandedText; #region XOR public string XOR(string text1, string text2) if (text1.length!= text2.length) Console.WriteLine("Two data blocks for XOR are must get same size."); return null;

19 77 StringBuilder XORed_Text = new StringBuilder(text1.Length); for (int i = 0; i < text1.length; i++) if (text1[i]!= text2[i]) XORed_Text.Append("1"); else XORed_Text.Append("0"); return XORed_Text.ToString();

20 78 DAFTAR RIWAYAT HIDUP DATA PRIBADI Nama Lengkap : Farid Akbar Siregar Jenis Kelamin : Laki-laki Tempat, Tanggal Lahir : Medan, 4 April 1994 Alamat : Jl. Kapodang II No.361 P.Mandala, Medan Agama : Islam farid_akbar_usu@yahoo.com Pendidikan Terakhir : Medan, Fakultas Ilmu Komputer dan Teknologi Informasi Jurusan S1 Ilmu Komputer PENDIDIKAN FORMAL : S1 Ilmu Komputer, Medan : SMK Telkom Sandhy Putra Medan : MTsN 2 Medan : MIN Sei Agul Medan PENGALAMAN ORGANISASI DAN KEGIATAN ILMIAH Anggota Departemen Wawasan Kontemporer Ikatan Mahasiswa S1 Ilmu Komputer (IMILKOM), Ketua Komisi Pengawas KPU IMILKOM, 2013 Ketua Departemen Wawasan Kontemporer Ikatan Mahasiswa S1 Ilmu Komputer (IMILKOM), Ketua Departemen Kemahasiswaan Ikatan Mahasiswa S1 Ilmu Komputer (IMILKOM), Praktek Kerja Lapangan Biro Administrasi Pembangunan SETDAPROVSU Juli- Agustus 2014

LISTING PROGRAM. private void filetoolstripmenuitem_click(object sender, EventArgs e) { this.hide(); Form2 fr = new Form2(); fr.

LISTING PROGRAM. private void filetoolstripmenuitem_click(object sender, EventArgs e) { this.hide(); Form2 fr = new Form2(); fr. 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();

More information

LAMPIRAN A LISTING PROGRAM

LAMPIRAN 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 information

A-1 LAMPIRAN A LISTING PROGRAM. Kode Program Form Main: Universitas Sumatera Utara

A-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 information

LISTING PROGRAM. 1. Module SkripsiUmri.py. import sys, operator, codecs, time. class Timer(object): def init (self): self.t1= time.

LISTING 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 information

LISTING PROGRAM. % UIWAIT makes pertama wait for user response (see UIRESUME) % uiwait(handles.figure1);

LISTING 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 information

CALCULATOR APPLICATION

CALCULATOR 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 information

A-1 LISTING PROGRAM. 1. Form1.cs. Universitas Sumatera Utara

A-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 information

LAMPIRAN A : LISTING PROGRAM

LAMPIRAN 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 information

Step4: Now, Drag and drop the Textbox, Button and Text block from the Toolbox.

Step4: Now, Drag and drop the Textbox, Button and Text block from the Toolbox. Name of Experiment: Display the Unicode for the key-board characters. Exp No:WP4 Background: Student should have a basic knowledge of C#. Summary: After going through this experiment, the student is aware

More information

Listing Program. private void exittoolstripmenuitem_click(object sender, EventArgs e) { Application.Exit(); }

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 information

LISTING PROGRAM. void KOMPRESIToolStripMenuItemClick(object sender, EventArgs e) { Kompresi k = new Kompresi(); k.show(); this.

LISTING 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 information

LISTING PROGRAM. com.example.jessicatamara.myapplication4;

LISTING 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 information

LISTING 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];

LISTING 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 information

Name of Experiment: Student Database

Name of Experiment: Student Database Name of Experiment: Student Database Exp No: DB1 Background: Student should have basic knowledge of C#. Summary: DBMS is a necessary requirement for any Mobile Application. We need to store and retrieve

More information

API Guide MSS-8 and MVS-16

API Guide MSS-8 and MVS-16 API Guide and MVS-16 Page 1-8 Channel Matrix Switcher Page 10-16 Channel Matrix Switcher and Multi Viewer MVS-16 API Guide for RS232 RS232 Connection: Port Settings: Bps 9600, Data bits 8, Parity None,

More information

LAMPIRAN A : LISTING PROGRAM

LAMPIRAN 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 information

LISTING PROGRAM. mainform.vb A-1. Universitas Sumatera Utara

LISTING 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 information

// Precondition: None // Postcondition: The address' name has been set to the // specified value set;

// 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

Object oriented lab /second year / review/lecturer: yasmin maki

Object 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 information

CSIS 1624 CLASS TEST 6

CSIS 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 information

% --- Executes on button press in btn_gsn. function btn_gsn_callback(hobject, eventdata, handles) GaussianSpeckleNoise close AiSoftware;

% --- 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

LISTING 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; 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 information

The Open Core Interface SDK has to be installed on your development computer. The SDK can be downloaded at:

The Open Core Interface SDK has to be installed on your development computer. The SDK can be downloaded at: This document describes how to create a simple Windows Forms Application using some Open Core Interface functions in C# with Microsoft Visual Studio Express 2013. 1 Preconditions The Open Core Interface

More information

LISTING PROGRAM. // // TODO: Add constructor code after the InitializeComponent()

LISTING 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 information

LISTING PROGRAM. // // TODO: Add constructor code after the InitializeComponent()

LISTING 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 information

visual studio vs#d express windows desktop

visual studio vs#d express windows desktop Free software used in development 1. Visual studio express 2013 for desktop applications. Express versions are free without time limit, only thing you need is Microsoft account (but you can download and

More information

How 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. 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 information

Lampiran 2 MASTER TABEL

Lampiran 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 information

LISTING PROGRAM. // // TODO: Add constructor code after the InitializeComponent() call. //

LISTING 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 information

// Program 2 - Extra Credit // CIS // Spring // Due: 3/11/2015. // By: Andrew L. Wright. //Edited by : Ben Spalding

// 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 information

You can call the project anything you like I will be calling this one project slide show.

You 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 information

Name of Experiment: Country Database

Name of Experiment: Country Database Name of Experiment: Country Database Exp No: DB2 Background: Student should have basic knowledge of C#. Summary: Database Management is one of the key factors in any Mobile application development framework.

More information

Lab - 1. Solution : 1. // Building a Simple Console Application. class HelloCsharp. static void Main() System.Console.WriteLine ("Hello from C#.

Lab - 1. Solution : 1. // Building a Simple Console Application. class HelloCsharp. static void Main() System.Console.WriteLine (Hello from C#. Lab - 1 Solution : 1 // Building a Simple Console Application class HelloCsharp static void Main() System.Console.WriteLine ("Hello from C#."); Solution: 2 & 3 // Building a WPF Application // Verifying

More information

Your Company Name. Tel: Fax: Microsoft Visual Studio C# Project Source Code Output

Your Company Name. Tel: Fax: Microsoft Visual Studio C# Project Source Code Output General Date Your Company Name Tel: +44 1234 567 9898 Fax: +44 1234 545 9999 email: info@@company.com Microsoft Visual Studio C# Project Source Code Output Created using VScodePrint Macro Variables Substitution

More information

Visual Basic/C# Programming (330)

Visual 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 information

CSC 355 PROJECT 4 NETWORKED TIC TAC TOE WITH WPF INTERFACE

CSC 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 information

Team project 2017 Dony Pratidana S. Hum Bima Agus Setyawan S. IIP

Team 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 information

S1 Teknik Telekomunikasi Fakultas Teknik Elektro. Kriptografi Simetris. KEAMANAN JARINGAN TTH3K3 Kur /2018

S1 Teknik Telekomunikasi Fakultas Teknik Elektro. Kriptografi Simetris. KEAMANAN JARINGAN TTH3K3 Kur /2018 S1 Teknik Telekomunikasi Fakultas Teknik Elektro Kriptografi Simetris KEAMANAN JARINGAN TTH3K3 Kur. 2016 2017/2018 Outline Terminologi Kripto: pesan, cipher, kunci, enkripsi, dekripsi, dan teknik substitusi

More information

Main 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..

Main 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 information

Network Operation System. netstat. ipconfig/tracert/ping. nslookup EEE 448 Computer Networks

Network Operation System. netstat. ipconfig/tracert/ping. nslookup EEE 448 Computer Networks EEE 448 Computer Networks with (Network Programming) Lecture #4 Dept of Electrical and Electronics Engineering Çukurova University Network Operation System When you are on the internet or are working in

More information

INFORMATION SYSTEM OF LIBRARY AT PONDOK PESANTREN DARUL IHSAN MUHAMMADIYAH SRAGEN

INFORMATION 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 information

FDSc in ICT. Building a Program in C#

FDSc in ICT. Building a Program in C# FDSc in ICT Building a Program in C# Objectives To build a complete application in C# from scratch Make a banking app Make use of: Methods/Functions Classes Inheritance Scenario We have a bank that has

More information

CS3240 Human-Computer Interaction

CS3240 Human-Computer Interaction CS3240 Human-Computer Interaction Lab Session 3 Supplement Creating a Picture Viewer Silverlight Application Page 1 Introduction This supplementary document is provided as a reference that showcases an

More information

HTTPCOLONSLASHSLASHRJBDOTSOCDOTPORTDOTACDOTUKSLASHPUNKSLASH RIGHTRIGHTRIGHTRIGHTDOTZIP

HTTPCOLONSLASHSLASHRJBDOTSOCDOTPORTDOTACDOTUKSLASHPUNKSLASH RIGHTRIGHTRIGHTRIGHTDOTZIP Portsmouth Cipher Step 1... - -.--. -.-. ---.-.. --- -.....-...-..........-...-.......-..--- -... -.. --- -... --- -.-. -.. --- -.--. ---.-. - -.. --- -.- -.-. -.. --- -..- -.-....-...-.......--...- -.

More information

RegEx - Numbers matching. Below is a sample code to find the existence of integers within a string.

RegEx - Numbers matching. Below is a sample code to find the existence of integers within a string. RegEx - Numbers matching Below is a sample code to find the existence of integers within a string. Sample code pattern to check for number in a string: using System; using System.Collections.Generic; using

More information

if (say==0) { k.commandtext = "Insert into kullanici(k_adi,sifre) values('" + textbox3.text + "','" + textbox4.text + "')"; k.

if (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 information

LISTING PROGRAM. //Find the maximum and minimum values in the array int maxvalue = integers[0]; //start with first element int minvalue = integers[0];

LISTING 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 information

API Guide MSS-8 and MVS-16

API Guide MSS-8 and MVS-16 API Guide MSS-8 and Page 2-8 Channel Matrix Switcher MSS-8 Page 13-16 Channel Matrix Switcher and Multi Viewer www.ospreyvideo.com 1 RACKMOUNT 8x8 MATRIX SWITCHER MSS-8 API Instructions for RS232 RS232

More information

Weather forecast ( part 1 )

Weather forecast ( part 1 ) Weather forecast ( part 1 ) I will create a small application that offers the weather forecast for a certain city in the USA. I will consume two webservices for this. The first service will give me an

More information

emkt Browserless Coding For C#.Net and Excel

emkt Browserless Coding For C#.Net and Excel emkt Browserless Coding For C#.Net and Excel Browserless Basic Instructions and Sample Code 7/23/2013 Table of Contents Using Excel... 3 Configuring Excel for sending XML to emkt... 3 Sandbox instructions

More information

Adapting a Grid to REP++

Adapting a Grid to REP++ Adapting a Grid to REP++ Author: R&D Department Publication date: April 28 2006 2006 Consyst SQL Inc. All rights reserved. Adapting a Grid to REP++ Overview The REP++toolkit for Windows provides a good

More information

Writing Your First Autodesk Revit Model Review Plug-In

Writing Your First Autodesk Revit Model Review Plug-In Writing Your First Autodesk Revit Model Review Plug-In R. Robert Bell Sparling CP5880 The Revit Model Review plug-in is a great tool for checking a Revit model for matching the standards your company has

More information

Listing Progam. Universitas Sumatera Utara

Listing Progam. Universitas Sumatera Utara 60 Listing Progam Listing Program Tabel Index

More information

An Implementation of RC4 + Algorithm and Zig-zag Algorithm in a Super Encryption Scheme for Text Security

An 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 information

Answer on Question# Programming, C#

Answer 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 information

Appendix A Programkod

Appendix 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 information

Computer measurement and control

Computer 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 information

A Summoner's Tale MonoGame Tutorial Series. Chapter 15. Saving Game State

A Summoner's Tale MonoGame Tutorial Series. Chapter 15. Saving Game State A Summoner's Tale MonoGame Tutorial Series Chapter 15 Saving Game State This tutorial series is about creating a Pokemon style game with the MonoGame Framework called A Summoner's Tale. The tutorials will

More information

Introduction to C# Applications

Introduction to C# Applications 1 2 3 Introduction to C# Applications OBJECTIVES To write simple C# applications To write statements that input and output data to the screen. To declare and use data of various types. To write decision-making

More information

Payment Gateway Integration Document For Offline and Online Modes

Payment Gateway Integration Document For Offline and Online Modes Payment Gateway Integration Document For Offline and Online Modes Dated: 28-Dec-2016 1. Introduction... 3 2. Process Flow... 3 2.1 Merchant Enrollment Flow... 3 2.2 Merchant Integration Flow... 3 2.3 Request

More information

Advance Windows Phone Development. Akber Alwani Window Phone 7 Development EP.NET Professionals User Group

Advance Windows Phone Development. Akber Alwani Window Phone 7 Development EP.NET Professionals User Group Advance Windows Phone Development Akber Alwani Window Phone 7 Development EP.NET Professionals User Group http://www.epdotnet.com 7 Agenda Page Navigation Application Bar and System tray Orientation-Aware

More information

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.

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. 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 information

II. Programming Technologies

II. Programming Technologies II. Programming Technologies II.1 The machine code program Code of algorithm steps + memory addresses: MOV AX,1234h ;0B8h 34h 12h - number (1234h) to AX register MUL WORD PTR [5678h] ;0F7h 26h 78h 56h

More information

Mainly three tables namely Teacher, Student and Class for small database of a school. are used. The snapshots of all three tables are shown below.

Mainly three tables namely Teacher, Student and Class for small database of a school. are used. The snapshots of all three tables are shown below. APPENDIX 1 TABLE DETAILS Mainly three tables namely Teacher, Student and Class for small database of a school are used. The snapshots of all three tables are shown below. Details of Class table are shown

More information

IBSDK Quick Start Tutorial for C# 2010

IBSDK Quick Start Tutorial for C# 2010 IB-SDK-00003 Ver. 3.0.0 2012-04-04 IBSDK Quick Start Tutorial for C# 2010 Copyright @2012, lntegrated Biometrics LLC. All Rights Reserved 1 QuickStart Project C# 2010 Example Follow these steps to setup

More information

Learn to Love Lambdas

Learn to Love Lambdas Learn to Love Lambdas An overview of Lambda Expressions by JeremyBytes.com Overview Lambda expressions can be confusing the first time you walk up to them. But once you get to know them, you ll see that

More information

Your Company Name. Tel: Fax: Microsoft Visual Studio C# Project Source Code Output

Your Company Name. Tel: Fax: Microsoft Visual Studio C# Project Source Code Output General Date Your Company Name Tel: +44 1234 567 9898 Fax: +44 1234 545 9999 email: info@@company.com Microsoft Visual Studio C# Project Source Code Output Created using VScodePrint Macro Variables Substitution

More information

First start a new Windows Form Application from C# and name it Interest Calculator. We need 3 text boxes. 4 labels. 1 button

First start a new Windows Form Application from C# and name it Interest Calculator. We need 3 text boxes. 4 labels. 1 button Create an Interest Calculator with C# In This tutorial we will create an interest calculator in Visual Studio using C# programming Language. Programming is all about maths now we don t need to know every

More information

LISTING PROGRAM. 1. Tampilan Awal. 2. Menu Login. Public Class Awal

LISTING 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

IST311 Chapter13.NET Files (Part2)

IST311 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 information

EEE-448 COMPUTER NETWORKS (Programming) Week -6 C# & IP Programming. The StringBuilder Class. StringBuilder Classes. StringBuilder with Append

EEE-448 COMPUTER NETWORKS (Programming) Week -6 C# & IP Programming. The StringBuilder Class. StringBuilder Classes. StringBuilder with Append EEE-448 COMPUTER NETWORKS (Programming) Week -6 C# & IP Programming Turgay IBRIKCI, PhD EEE448 Computer Networks Spring 2011 EEE448 Computer Networks Spring 2011 The StringBuilder Class The StringBuilder

More information

Now find the button component in the tool box. [if toolbox isn't present click VIEW on the top and click toolbox]

Now find the button component in the tool box. [if toolbox isn't present click VIEW on the top and click toolbox] C# Tutorial - Create a Tic Tac Toe game with Working AI This project will be created in Visual Studio 2010 however you can use any version of Visual Studio to follow along this tutorial. To start open

More information

C:\homeworks\PenAttention_v13_src\PenAttention_v13_src\PenAttention4\PenAttention\PenAttention.cs 1 using System; 2 using System.Diagnostics; 3 using

C:\homeworks\PenAttention_v13_src\PenAttention_v13_src\PenAttention4\PenAttention\PenAttention.cs 1 using System; 2 using System.Diagnostics; 3 using 1 using System; 2 using System.Diagnostics; 3 using System.Collections.Generic; 4 using System.ComponentModel; 5 using System.Data; 6 using System.Drawing; 7 using System.Text; 8 using System.Windows.Forms;

More information

create 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) ) 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 information

RegEx-validate IP address. Defined below is the pattern for checking an IP address with value: String Pattern Explanation

RegEx-validate IP address. Defined below is the pattern for checking an IP address with value: String Pattern Explanation RegEx-validate IP address Defined below is the pattern for checking an IP address with value: 240.30.20.60 String Pattern Explanation 240 ^[0-9]1,3 To define the starting part as number ranging from 1

More information

Form Properties Window

Form Properties Window C# Tutorial Create a Save The Eggs Item Drop Game in Visual Studio Start Visual Studio, Start a new project. Under the C# language, choose Windows Form Application. Name the project savetheeggs and click

More information

The contents of this document are directly taken from the EPiServer SDK. Please see the SDK for further technical information about EPiServer.

The contents of this document are directly taken from the EPiServer SDK. Please see the SDK for further technical information about EPiServer. Web Services Product version: 4.50 Document version: 1.0 Document creation date: 04-05-2005 Purpose The contents of this document are directly taken from the EPiServer SDK. Please see the SDK for further

More information

Non-numeric types, boolean types, arithmetic. operators. Comp Sci 1570 Introduction to C++ Non-numeric types. const. Reserved words.

Non-numeric types, boolean types, arithmetic. operators. Comp Sci 1570 Introduction to C++ Non-numeric types. const. Reserved words. , ean, arithmetic s s on acters Comp Sci 1570 Introduction to C++ Outline s s on acters 1 2 3 4 s s on acters Outline s s on acters 1 2 3 4 s s on acters ASCII s s on acters ASCII s s on acters Type: acter

More information

While the press might have you believe that becoming a phoneapp

While the press might have you believe that becoming a phoneapp 2 Writing Your First Phone Application While the press might have you believe that becoming a phoneapp millionaire is a common occurrence, it s actually pretty rare, but that doesn t mean you won t want

More information

CSC Java Programming, Fall Java Data Types and Control Constructs

CSC 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 information

Experiment 5 : Creating a Windows application to interface with 7-Segment LED display

Experiment 5 : Creating a Windows application to interface with 7-Segment LED display Experiment 5 : Creating a Windows application to interface with 7-Segment LED display Objectives : 1) To understand the how Windows Forms in the Windows-based applications. 2) To create a Window Application

More information

APÉ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: 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 information

Chromatic Remote Control Product Guide Executive Way, Suite A Frederick, MD 21704

Chromatic Remote Control Product Guide Executive Way, Suite A Frederick, MD 21704 Chromatic Remote Control Product Guide 7340 Executive Way, Suite A Frederick, MD 21704 Document Version: 2.1 December 2013 Contents 1 Introduction... 3 2 Accessing Chromatic Remote Control... 4 2.1 Configure

More information

A comparative study of Message Digest 5(MD5) and SHA256 algorithm

A 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 information

Start Visual Studio, start a new Windows Form project under the C# language, name the project BalloonPop MooICT and click OK.

Start Visual Studio, start a new Windows Form project under the C# language, name the project BalloonPop MooICT and click OK. Start Visual Studio, start a new Windows Form project under the C# language, name the project BalloonPop MooICT and click OK. Before you start - download the game assets from above or on MOOICT.COM to

More information

using System.IO; using System.Collections.Generic; using System.Xml.Linq;

using System.IO; using System.Collections.Generic; using System.Xml.Linq; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Reflection; using System.Text; using System.Threading; using System.Windows; using System.Windows.Controls;

More information

C# winforms gridview

C# winforms gridview C# winforms gridview 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 information

Microsoft Corporation

Microsoft Corporation Microsoft Corporation http://www.jeff.wilcox.name/ 2 3 Display 480x800 QVGA Other resolutions in the future Capacitive touch 4+ contact points Sensors A-GPS, Accelerometer, Compass, Light Camera 5+ megapixels

More information

Objectives. Introduce the core C# language features class Main types variables basic input and output operators arrays control constructs comments

Objectives. Introduce the core C# language features class Main types variables basic input and output operators arrays control constructs comments Basics Objectives Introduce the core C# language features class Main types variables basic input and output operators arrays control constructs comments 2 Class Keyword class used to define new type specify

More information

Complete code applied for one-armed robot

Complete code applied for one-armed robot Complete code applied for one-armed robot Workplace 1: using System; using System.Collections.Generic; using System.ComponentModel; using System.Diagnostics; using System.Globalization; using System.IO;

More information

Business Rules: RowBuilder Attribute and Existing Rows

Business Rules: RowBuilder Attribute and Existing Rows Business Rules: RowBuilder Attribute and Existing Rows Northwind database has a cross-reference table EmployeeTerritories that link together an employee and a territory. Here is a user interface generated

More information

FPGA Implementation of Optimized DES Encryption Algorithm on Spartan 3E

FPGA Implementation of Optimized DES Encryption Algorithm on Spartan 3E FPGA Implementation of Optimized DES Encryption Algorithm on Spartan 3E Amandeep Singh, Manu Bansal Abstract - Data Security is an important parameter for the industries. It can be achieved by Encryption

More information

Click on the empty form and apply the following options to the properties Windows.

Click on the empty form and apply the following options to the properties Windows. Start New Project In Visual Studio Choose C# Windows Form Application Name it SpaceInvaders and Click OK. Click on the empty form and apply the following options to the properties Windows. This is the

More information

Yes, this is still a listbox!

Yes, this is still a listbox! Yes, this is still a listbox! Step 1: create a new project I use the beta 2 of Visual Studio 2008 ( codename Orcas ) and Expression Blend 2.0 September preview for this tutorial. You can download the beta2

More information

CS 315 Data Structures mid-term 2

CS 315 Data Structures mid-term 2 CS 315 Data Structures mid-term 2 1) Shown below is an AVL tree T. Nov 14, 2012 Solutions to OPEN BOOK section. (a) Suggest a key whose insertion does not require any rotation. 18 (b) Suggest a key, if

More information

Annex 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 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 information

LAMPIRAN 1 PENGARUH KETERSEDIAAN KOLEKSI PERPUSTAKAAN TERHADAP MINAT BACA SISWA SMP NEGERI 30 MEDAN

LAMPIRAN 1 PENGARUH KETERSEDIAAN KOLEKSI PERPUSTAKAAN TERHADAP MINAT BACA SISWA SMP NEGERI 30 MEDAN LAMPIRAN 1 ANGKET PENELITIAN PENGARUH KETERSEDIAAN KOLEKSI PERPUSTAKAAN TERHADAP MINAT BACA SISWA SMP NEGERI 30 MEDAN Saya mengharapkan kesediaan Saudara untuk mengisi angket dalam rangka penelitian tetang

More information

Accurate study guides, High passing rate! IT TEST BOOK QUESTION & ANSWER. Ittestbook provides update free of charge in one year!

Accurate study guides, High passing rate! IT TEST BOOK QUESTION & ANSWER. Ittestbook provides update free of charge in one year! IT TEST BOOK QUESTION & ANSWER Ittestbook provides update free of charge in one year! Accurate study guides, High passing rate! Exam : 070-506 Title : TS: Microsoft Silverlight 4, Development Version :

More information

LAMPIRAN. Universitas Sumatera Utara

LAMPIRAN. Universitas Sumatera Utara 67 LAMPIRAN Lampiran A-1 Listing Program Visual Basic Private Sub mn_isidata_click() frm_isi_data.show Me.Hide Private Sub mn_koneksiport_click() frm_koneksi_port.show Me.Hide Private Sub mn_tentang_click()

More information

Lecture 8 Building an MDI Application

Lecture 8 Building an MDI Application Lecture 8 Building an MDI Application Introduction The MDI (Multiple Document Interface) provides a way to display multiple (child) windows forms inside a single main(parent) windows form. In this example

More information