Esempio n. 1
0
        static void Main(string[] args)
        {
            karyawan kry1 = new karyawan();

            kry1.Nama        = "abdul";
            kry1.Nik         = "1811";
            kry1.GajiBulanan = 3000000;

            karyawan kry2 = new karyawan();

            kry2.Nama        = "sidik";
            kry2.Nik         = "2251";
            kry2.GajiBulanan = 2000000;

            Console.WriteLine("no.\tNik/Nama\t\tGajiBulanan");
            Console.WriteLine("============================");
            Console.WriteLine("1.\t{0}  {1}\t\t{2}", kry1.Nik, kry1.Nama, kry1.GajiBulanan);
            Console.WriteLine("2.\t{0}  {1}\t\t{2}", kry2.Nik, kry2.Nama, kry2.GajiBulanan);

            Console.WriteLine("\n\n");
            Console.WriteLine("Gaji Naik 10%");
            Console.WriteLine("\n");
            Console.WriteLine("no.\tNik/Nama\t\tGajiBulanan");
            Console.WriteLine("=============================");
            Console.WriteLine("1.\t{0}  {1}\t\t{2}", kry1.Nik, kry1.Nama, kry1.GajiBulanan + (kry1.GajiBulanan * 0.10));
            Console.WriteLine("2.\t{0}  {1}\t\t{2}", kry2.Nik, kry2.Nama, kry2.GajiBulanan + (kry2.GajiBulanan * 0.10));
            Console.ReadKey();
        }
Esempio n. 2
0
        static void Main(string[] args)
        {
            karyawan pegawai = new karyawan
            {
                Nama1 = "Ryan", Nik1 = "2641", Gaji1 = 4000000,
                Nama2 = "Arya", Nik2 = "2627", Gaji2 = 5000000
            };

            pegawai.infoGaji();
            Console.WriteLine();

            pegawai.kenaikanGaji();
            Console.WriteLine();

            Console.ReadKey();
        }
Esempio n. 3
0
        static void Main(string[] args)
        {
            karyawan krywn = new karyawan();

            krywn.nama = "Fauzan";
            krywn.nik  = "2319";
            krywn.gaji = 1000000;

            krywn.nama2 = "Boo";
            krywn.nik2  = "2512";
            krywn.gaji2 = 2000000;

            krywn.infoGaji();
            Console.WriteLine();
            krywn.kenaikanGaji();
            Console.WriteLine();
            Console.ReadKey();
        }
Esempio n. 4
0
        static void Main(string[] args)
        {
            karyawan krywn = new karyawan();

            krywn.nama = "Bismar";
            krywn.nik  = "0126";
            krywn.gaji = 1000000;

            krywn.nama2 = "cony";
            krywn.nik2  = "0805";
            krywn.gaji2 = 2000000;

            krywn.infoGaji();
            Console.WriteLine();
            krywn.kenaikanGaji();
            Console.WriteLine();
            Console.ReadKey();
        }
Esempio n. 5
0
        static void Main(string[] args)
        {
            karyawan krywn = new karyawan();

            krywn.nama = "Faqih";
            krywn.nik  = "1234";
            krywn.gaji = 1000000;

            krywn.nama2 = "Primawan";
            krywn.nik2  = "5678";
            krywn.gaji2 = 2000000;

            krywn.infoGaji();
            Console.WriteLine();
            krywn.kenaikanGaji();
            Console.WriteLine();
            Console.ReadKey();
        }
Esempio n. 6
0
        static void Main(string[] args)
        {
            karyawan kry = new karyawan();

            kry.nama = "chandra";
            kry.nik  = "2354";
            kry.gaji = 1000000;

            kry.nama2 = "fauzan";
            kry.nik2  = "1234";
            kry.gaji2 = 2000000;

            kry.infoGaji();
            Console.WriteLine();
            kry.kenaikanGaji();
            Console.WriteLine();
            Console.ReadKey();
        }
Esempio n. 7
0
        static void Main(string[] args)
        {
            karyawan krw = new karyawan
            {
                nama1 = "dwi",
                nik1  = "2624",
                gaji1 = 3000000,

                nama2 = "saputro",
                nik2  = "2555",
                gaji2 = 2000000
            };

            krw.infoGaji();
            Console.WriteLine();
            krw.kenaikanGaji();
            Console.WriteLine();
            Console.ReadKey();
        }