Ejemplo n.º 1
0
        public static void Main(string[] args)
        {
            //Your code goes here
            Console.WriteLine("Nama\t: Nur Fikri");
            Console.WriteLine("NIM\t: 19.11.2790");
            Console.WriteLine("Kelas\t: 19 IF 03");

            KaryawanTetap karyawanTetap = new KaryawanTetap();

            karyawanTetap.NIK         = "2790";
            karyawanTetap.Nama        = "Nur Fikri";
            karyawanTetap.GajiBulanan = 5000000;

            KaryawanHarian karyawanHarian = new KaryawanHarian();

            karyawanHarian.NIK            = "4823";
            karyawanHarian.Nama           = "Dito";
            karyawanHarian.UpahPerJam     = 50000;
            karyawanHarian.JumlahJamKerja = 9;

            Sales sales = new Sales();

            sales.NIK             = "8231";
            sales.Nama            = "Kiki";
            sales.JumlahPenjualan = 7;
            sales.Komisi          = 30000;

            List <Karyawan> karyawan = new List <Karyawan>();

            karyawan.Add(karyawanTetap);
            karyawan.Add(karyawanHarian);
            karyawan.Add(sales);


            Console.WriteLine("==================================================");
            Console.WriteLine(" NO | NIK / NAMA\t\t\t\t | Gaji\t\t |");
            Console.WriteLine("==================================================");
            for (int i = 0; i < karyawan.Count; i++)
            {
                Console.WriteLine(" {0}. | {1} {2} \t\t| {3} \t |", i + 1, karyawan[i].NIK, karyawan[i].Nama, karyawan[i].Gaji());
            }

            Console.ReadKey();
        }
Ejemplo n.º 2
0
        public static void Main(string[] args)
        {
            //Your code get here
            Console.WriteLine("Nama\t: DHIMAS ALVI HIDAYAH");
            Console.WriteLine("NIM\t: 19.11.2805");
            Console.WriteLine("Kelas\t: 19 IF 04");

            KaryawanTetap karyawanTetap = new KaryawanTetap();

            karyawanTetap.NIK         = "2805";
            karyawanTetap.Nama        = "DHIMAS";
            karyawanTetap.GajiBulanan = 3000000;

            KaryawanHarian karyawanHarian = new KaryawanHarian();

            karyawanHarian.NIK            = "3457";
            karyawanHarian.Nama           = "DIAN NUR";
            karyawanHarian.UpahPerJam     = 10000;
            karyawanHarian.JumlahJamKerja = 8;

            Sales sales = new Sales();

            sales.NIK             = "4854";
            sales.Nama            = "SYAFITRI";
            sales.JumlahPenjualan = 10;
            sales.Komisi          = 50000;

            List <Karyawan> karyawan = new List <Karyawan>();

            karyawan.Add(karyawanTetap);
            karyawan.Add(karyawanHarian);
            karyawan.Add(sales);


            Console.WriteLine("==================================================");
            Console.WriteLine(" NO | NIK / NAMA\t\t\t\t | Gaji\t\t |");
            Console.WriteLine("==================================================");
            for (int i = 0; i < karyawan.Count; i++)
            {
                Console.WriteLine(" {0}. | {1} {2} \t\t| {3} \t |", i + 1, karyawan[i].NIK, karyawan[i].Nama, karyawan[i].Gaji());
            }

            Console.ReadKey();
        }
Ejemplo n.º 3
0
        public static void Main(string[] args)
        {
            //Your code goes here
            Console.WriteLine("Nama: Akbar ");
            Console.WriteLine("NIM\t: 19.11.2778");

            KaryawanTetap karyawanTetap = new KaryawanTetap();

            karyawanTetap.NIK         = "1442";
            karyawanTetap.Nama        = "Budi";
            karyawanTetap.GajiBulanan = 40000000;

            KaryawanHarian karyawanHarian = new KaryawanHarian();

            karyawanHarian.NIK            = "9385";
            karyawanHarian.Nama           = "Risa";
            karyawanHarian.UpahPerJam     = 80000;
            karyawanHarian.JumlahJamKerja = 8;

            Sales sales = new Sales();

            sales.NIK             = "1285";
            sales.Nama            = "Kemal";
            sales.JumlahPenjualan = 15;
            sales.Komisi          = 50000;

            List <Karyawan> karyawan = new List <Karyawan>();

            karyawan.Add(karyawanTetap);
            karyawan.Add(karyawanHarian);
            karyawan.Add(sales);


            Console.WriteLine("==================================================");
            Console.WriteLine(" NO | NIK / NAMA\t\t\t\t | Gaji\t\t |");
            Console.WriteLine("==================================================");
            for (int i = 0; i < karyawan.Count; i++)
            {
                Console.WriteLine(" {0}. | {1} {2} \t\t| {3} \t |", i + 1, karyawan[i].NIK, karyawan[i].Nama, karyawan[i].Gaji());
            }

            Console.ReadKey();
        }
Ejemplo n.º 4
0
        public static void Main(string[] args)
        {
            Console.WriteLine("Nama\t : Farig Maulana Eka Putra ");
            Console.WriteLine("NIM\t  : 19.11.2748");
            Console.WriteLine("Kelas\t: 19 IF 03");

            KaryawanTetap karyawanTetap = new KaryawanTetap();

            karyawanTetap.NIK         = "1212";
            karyawanTetap.Nama        = "Yola";
            karyawanTetap.GajiBulanan = 1000000;

            KaryawanHarian karyawanHarian = new KaryawanHarian();

            karyawanHarian.NIK            = "2121";
            karyawanHarian.Nama           = "Dono";
            karyawanHarian.UpahPerJam     = 150000;
            karyawanHarian.JumlahJamKerja = 8;

            Sales sales = new Sales();

            sales.NIK             = "2222";
            sales.Nama            = "Yono";
            sales.JumlahPenjualan = 11;
            sales.Komisi          = 110000;

            List <Karyawan> karyawan = new List <Karyawan>();

            karyawan.Add(karyawanTetap);
            karyawan.Add(karyawanHarian);
            karyawan.Add(sales);


            Console.WriteLine("========================================");
            Console.WriteLine(" NO | NIK / NAMA\t\t| Gaji\t\t |");
            Console.WriteLine("========================================");
            for (int i = 0; i < karyawan.Count; i++)
            {
                Console.WriteLine(" {0}. | {1} {2} \t\t| {3} \t |", i + 1, karyawan[i].NIK, karyawan[i].Nama, karyawan[i].Gaji());
            }

            Console.ReadKey();
        }
        public static void Main(string[] args)
        {
            Console.WriteLine("Nama\t : Alma Monika Ivo");
            Console.WriteLine("NIM\t  : 19.11.2759");
            Console.WriteLine("Kelas\t: Informatika 03");

            KaryawanTetap karyawanTetap = new KaryawanTetap();

            karyawanTetap.NIK         = "070701";
            karyawanTetap.Nama        = "Arthur";
            karyawanTetap.GajiBulanan = 4000000;

            KaryawanHarian karyawanHarian = new KaryawanHarian();

            karyawanHarian.NIK            = "278902";
            karyawanHarian.Nama           = "Vanessa";
            karyawanHarian.UpahPerJam     = 250000;
            karyawanHarian.JumlahJamKerja = 8;

            Sales sales = new Sales();

            sales.NIK             = "230402";
            sales.Nama            = "Ardhy";
            sales.JumlahPenjualan = 11;
            sales.Komisi          = 150000;

            List <Karyawan> karyawan = new List <Karyawan>();

            karyawan.Add(karyawanTetap);
            karyawan.Add(karyawanHarian);
            karyawan.Add(sales);


            Console.WriteLine("========================================");
            Console.WriteLine(" NO | NIK / NAMA\t\t| Gaji\t\t |");
            Console.WriteLine("========================================");
            for (int i = 0; i < karyawan.Count; i++)
            {
                Console.WriteLine(" {0}. | {1} {2} \t\t| {3} \t |", i + 1, karyawan[i].NIK, karyawan[i].Nama, karyawan[i].Gaji());
            }

            Console.ReadKey();
        }
Ejemplo n.º 6
0
        public static void Main(string[] args)
        {
            Console.WriteLine("Nama\t: Muhammad Ridho Herprabowo");
            Console.WriteLine("NIM\t: 19.11.2792");
            Console.WriteLine("Kelas\t: 19 IF 03");

            KaryawanTetap karyawanTetap = new KaryawanTetap();

            karyawanTetap.NIK         = "2792";
            karyawanTetap.Nama        = "Muhammad Ridho Herprabowo";
            karyawanTetap.GajiBulanan = 1000000;

            KaryawanHarian karyawanHarian = new KaryawanHarian();

            karyawanHarian.NIK            = "2792";
            karyawanHarian.Nama           = "Muhammad Ridho Herprabowo";
            karyawanHarian.UpahPerJam     = 100000;
            karyawanHarian.JumlahJamKerja = 10;

            Sales sales = new Sales();

            sales.NIK             = "2792";
            sales.Nama            = "Muhammad Ridho Herprabowo";
            sales.JumlahPenjualan = 20;
            sales.Komisi          = 50000;

            List <Karyawan> karyawan = new List <Karyawan>();

            karyawan.Add(karyawanTetap);
            karyawan.Add(karyawanHarian);
            karyawan.Add(sales);


            Console.WriteLine("==================================================");
            Console.WriteLine(" NO | NIK / NAMA\t\t\t\t | Gaji\t\t |");
            Console.WriteLine("==================================================");
            for (int i = 0; i < karyawan.Count; i++)
            {
                Console.WriteLine(" {0}. | {1} {2} \t\t| {3} \t |", i + 1, karyawan[i].NIK, karyawan[i].Nama, karyawan[i].Gaji());
            }

            Console.ReadKey();
        }
Ejemplo n.º 7
0
        public static void Main(string[] args)
        {
            Console.WriteLine("Nama\t : sonya yuninda fauziah");
            Console.WriteLine("NIM\t  : 19.11.2747");
            Console.WriteLine("Kelas\t: Informatika-03");

            KaryawanTetap karyawanTetap = new KaryawanTetap();

            karyawanTetap.NIK         = "1111";
            karyawanTetap.Nama        = "lola";
            karyawanTetap.GajiBulanan = 2000000;

            KaryawanHarian karyawanHarian = new KaryawanHarian();

            karyawanHarian.NIK            = "2222";
            karyawanHarian.Nama           = "loli";
            karyawanHarian.UpahPerJam     = 150000;
            karyawanHarian.JumlahJamKerja = 8;

            Sales sales = new Sales();

            sales.NIK             = "3333";
            sales.Nama            = "lala";
            sales.JumlahPenjualan = 11;
            sales.Komisi          = 110000;

            List <Karyawan> karyawan = new List <Karyawan>();

            karyawan.Add(karyawanTetap);
            karyawan.Add(karyawanHarian);
            karyawan.Add(sales);


            Console.WriteLine("========================================");
            Console.WriteLine(" NO | NIK / NAMA\t\t| Gaji\t\t |");
            Console.WriteLine("========================================");
            for (int i = 0; i < karyawan.Count; i++)
            {
                Console.WriteLine(" {0}. | {1} {2} \t\t| {3} \t |", i + 1, karyawan[i].NIK, karyawan[i].Nama, karyawan[i].Gaji());
            }

            Console.ReadKey();
        }
Ejemplo n.º 8
0
        public static void Main(string[] args)
        {
            Console.WriteLine("Nama\t : Haris Yusuf Irwanto ");
            Console.WriteLine("NIM\t  : 19.11.2727");
            Console.WriteLine("Kelas\t: Informatika 03");

            KaryawanTetap karyawanTetap = new KaryawanTetap();

            karyawanTetap.NIK         = "1234";
            karyawanTetap.Nama        = "Andi";
            karyawanTetap.GajiBulanan = 2000000;

            KaryawanHarian karyawanHarian = new KaryawanHarian();

            karyawanHarian.NIK            = "2345";
            karyawanHarian.Nama           = "Siti";
            karyawanHarian.UpahPerJam     = 150000;
            karyawanHarian.JumlahJamKerja = 8;

            Sales sales = new Sales();

            sales.NIK             = "3456";
            sales.Nama            = "Irwan";
            sales.JumlahPenjualan = 11;
            sales.Komisi          = 110000;

            List <Karyawan> karyawan = new List <Karyawan>();

            karyawan.Add(karyawanTetap);
            karyawan.Add(karyawanHarian);
            karyawan.Add(sales);


            Console.WriteLine("========================================");
            Console.WriteLine(" NO | NIK / NAMA\t\t| Gaji\t\t |");
            Console.WriteLine("========================================");
            for (int i = 0; i < karyawan.Count; i++)
            {
                Console.WriteLine(" {0}. | {1} {2} \t\t| {3} \t |", i + 1, karyawan[i].NIK, karyawan[i].Nama, karyawan[i].Gaji());
            }

            Console.ReadKey();
        }
        public static void Main(string[] args)
        {
            Console.WriteLine("Nama\t : Roaina Alfiyan N");
            Console.WriteLine("NIM\t  : 19.11.2744");
            Console.WriteLine("Kelas\t: Informatika-03");

            KaryawanTetap karyawanTetap = new KaryawanTetap();

            karyawanTetap.NIK         = "2744";
            karyawanTetap.Nama        = "alfiyan";
            karyawanTetap.GajiBulanan = 1500000;

            KaryawanHarian karyawanHarian = new KaryawanHarian();

            karyawanHarian.NIK            = "1234";
            karyawanHarian.Nama           = "mamat  ";
            karyawanHarian.UpahPerJam     = 110000;
            karyawanHarian.JumlahJamKerja = 8;

            Sales sales = new Sales();

            sales.NIK             = "5678";
            sales.Nama            = "ujang  ";
            sales.JumlahPenjualan = 13;
            sales.Komisi          = 100000;

            List <Karyawan> karyawan = new List <Karyawan>();

            karyawan.Add(karyawanTetap);
            karyawan.Add(karyawanHarian);
            karyawan.Add(sales);


            Console.WriteLine("===========================================");
            Console.WriteLine(" NO | NIK / NAMA\t\t   | Gaji\t\t |");
            Console.WriteLine("===========================================");
            for (int i = 0; i < karyawan.Count; i++)
            {
                Console.WriteLine(" {0}. | {1} {2} \t\t| {3} \t ", i + 1, karyawan[i].NIK, karyawan[i].Nama, karyawan[i].Gaji());
            }

            Console.ReadKey();
        }
Ejemplo n.º 10
0
        public static void Main(string[] args)
        {
            //Your code goes here
            Console.WriteLine("Nama : Rafif Fauzan Almahdy  | 19.11.2750 | 019-IF03");


            KaryawanTetap karyawanTetap = new KaryawanTetap();

            karyawanTetap.NIK         = "2750";
            karyawanTetap.Nama        = "Rafif Fauzan";
            karyawanTetap.GajiBulanan = 10000000;

            KaryawanHarian karyawanHarian = new KaryawanHarian();

            karyawanHarian.NIK            = "7422";
            karyawanHarian.Nama           = "Fauzan Ali";
            karyawanHarian.UpahPerJam     = 60000;
            karyawanHarian.JumlahJamKerja = 8;

            Sales sales = new Sales();

            sales.NIK             = "4227";
            sales.Nama            = "Almahdy";
            sales.JumlahPenjualan = 15;
            sales.Komisi          = 80000;

            List <Karyawan> karyawan = new List <Karyawan>();

            karyawan.Add(karyawanTetap);
            karyawan.Add(karyawanHarian);
            karyawan.Add(sales);


            Console.WriteLine("==================================================");
            Console.WriteLine(" NO | NIK / NAMA\t\t\t\t | Gaji\t\t |");
            Console.WriteLine("==================================================");
            for (int i = 0; i < karyawan.Count; i++)
            {
                Console.WriteLine(" {0}. | {1} {2} \t\t| {3} \t |", i + 1, karyawan[i].NIK, karyawan[i].Nama, karyawan[i].Gaji());
            }

            Console.ReadKey();
        }
Ejemplo n.º 11
0
        public static void Main(string[] args)
        {
            //Your code goes here
            Console.WriteLine("Nama\t: Addnan Nurwakhid");
            Console.WriteLine("NIM\t: 19.11.2736");
            Console.WriteLine("Kelas\t: Informatika 03_19");

            KaryawanTetap karyawanTetap = new KaryawanTetap();

            karyawanTetap.NIK         = "19112736";
            karyawanTetap.Nama        = "Addnan Nurwakhid";
            karyawanTetap.GajiBulanan = 5000000;

            KaryawanHarian karyawanHarian = new KaryawanHarian();

            karyawanHarian.NIK            = "19112020";
            karyawanHarian.Nama           = "Bayu Pamungkas";
            karyawanHarian.UpahPerJam     = 60000;
            karyawanHarian.JumlahJamKerja = 10;

            Sales sales = new Sales();

            sales.NIK             = "19112424";
            sales.Nama            = "Nurwicaksana";
            sales.JumlahPenjualan = 20;
            sales.Komisi          = 100000;

            List <Karyawan> karyawan = new List <Karyawan>();

            karyawan.Add(karyawanTetap);
            karyawan.Add(karyawanHarian);
            karyawan.Add(sales);

            Console.WriteLine("==================================================");
            Console.WriteLine(" NO | NIK / NAMA\t\t\t\t | Gaji\t\t |");
            Console.WriteLine("==================================================");
            for (int i = 0; i < karyawan.Count; i++)
            {
                Console.WriteLine(" {0}. | {1} {2} \t\t| {3} \t |", i + 1, karyawan[i].NIK, karyawan[i].Nama, karyawan[i].Gaji());
            }

            Console.ReadKey();
        }
        public static void Main(string[] args)
        {
            Console.WriteLine("Nama\t: Bayu Baskoro");
            Console.WriteLine("NIM\t: 19.11.2794");
            Console.WriteLine("Kelas\t: IF 04");

            KaryawanTetap karyawanTetap = new KaryawanTetap();

            karyawanTetap.NIK         = "2794";
            karyawanTetap.Nama        = "Bayu Bas";
            karyawanTetap.GajiBulanan = 15000000;

            KaryawanHarian karyawanHarian = new KaryawanHarian();

            karyawanHarian.NIK            = "1911";
            karyawanHarian.Nama           = "Baskoro Bas";
            karyawanHarian.UpahPerJam     = 120000;
            karyawanHarian.JumlahJamKerja = 8;

            Sales sales = new Sales();

            sales.NIK             = "1127";
            sales.Nama            = "Bayu Bas";
            sales.JumlahPenjualan = 15;
            sales.Komisi          = 85000;

            List <Karyawan> Karyawan = new List <Karyawan>();

            Karyawan.Add(karyawanTetap);
            Karyawan.Add(karyawanHarian);
            Karyawan.Add(sales);



            Console.WriteLine(" NO | NIK / NAMA\t\t Gaji\t\t |");

            for (int i = 0; i < Karyawan.Count; i++)
            {
                Console.WriteLine(" {0}. | {1} {2} \t\t| {3} \t |", i + 1, Karyawan[i].NIK, Karyawan[i].Nama, Karyawan[i].Gaji());
            }

            Console.ReadKey();
        }
Ejemplo n.º 13
0
        public static void Main(string[] args)
        {
            KaryawanTetap karyawanTetap = new KaryawanTetap();

            karyawanTetap.NIK         = "2345";
            karyawanTetap.Nama        = "Rahman";
            karyawanTetap.GajiBulanan = 25000000;

            KaryawanHarian karyawanHarian = new KaryawanHarian();

            karyawanHarian.NIK            = "6789";
            karyawanHarian.Nama           = "Ardian";
            karyawanHarian.UpahPerJam     = 90000;
            karyawanHarian.JumlahJamKerja = 8;

            Sales sales = new Sales();

            sales.NIK             = "2775";
            sales.Nama            = "Firman";
            sales.JumlahPenjualan = 15;
            sales.Komisi          = 70000;

            List <Karyawan> karyawan = new List <Karyawan>();

            karyawan.Add(karyawanTetap);
            karyawan.Add(karyawanHarian);
            karyawan.Add(sales);


            Console.WriteLine("==================================================");
            Console.WriteLine(" NO | NIK / NAMA\t\t | Gaji\t\t |");
            Console.WriteLine("==================================================");
            for (int i = 0; i < karyawan.Count; i++)
            {
                Console.WriteLine(" {0}. | {1} {2} \t\t| {3} \t |", i + 1, karyawan[i].NIK, karyawan[i].Nama, karyawan[i].Gaji());
            }

            Console.ReadKey();
        }
        public static void Main(string[] args)
        {
            KaryawanTetap karyawanTetap = new KaryawanTetap();

            karyawanTetap.NIK         = "19112604";
            karyawanTetap.Nama        = "Muhammad Muhajir Islam";
            karyawanTetap.GajiBulanan = 10000000;

            KaryawanHarian karyawanHarian = new KaryawanHarian();

            karyawanHarian.NIK            = "19112621";
            karyawanHarian.Nama           = "Aryo Bimo Saputro";
            karyawanHarian.UpahPerJam     = 600000;
            karyawanHarian.JumlahJamKerja = 8;

            Sales sales = new Sales();

            sales.NIK             = "19112626";
            sales.Nama            = "Deny Ali Saputra";
            sales.JumlahPenjualan = 15;
            sales.Komisi          = 80000;

            List <Karyawan> karyawan = new List <Karyawan>();

            karyawan.Add(karyawanTetap);
            karyawan.Add(karyawanHarian);
            karyawan.Add(sales);


            Console.WriteLine("==================================================");
            Console.WriteLine(" NO | NIK / NAMA\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \t\t\t| Gaji\t\t |");
            Console.WriteLine("==================================================");
            for (int i = 0; i < karyawan.Count; i++)
            {
                Console.WriteLine(" {0}. | {1} {2} \t\t| {3} \t |", i + 1, karyawan[i].NIK, karyawan[i].Nama, karyawan[i].Gaji());
            }

            Console.ReadKey();
        }
Ejemplo n.º 15
0
        public static void Main(string[] args)
        {
            KaryawanTetap karyawanTetap = new KaryawanTetap();

            karyawanTetap.NIK         = "1234";
            karyawanTetap.Nama        = "Jini Jana";
            karyawanTetap.GajiBulanan = 10000000;

            KaryawanHarian karyawanHarian = new KaryawanHarian();

            karyawanHarian.NIK            = "4321";
            karyawanHarian.Nama           = "Jana Jini";
            karyawanHarian.UpahPerJam     = 60000;
            karyawanHarian.JumlahJamKerja = 8;

            Sales sales = new Sales();

            sales.NIK             = "2734";
            sales.Nama            = "Naja Niji";
            sales.JumlahPenjualan = 15;
            sales.Komisi          = 80000;

            List <Karyawan> karyawan = new List <Karyawan>();

            karyawan.Add(karyawanTetap);
            karyawan.Add(karyawanHarian);
            karyawan.Add(sales);


            Console.WriteLine("==================================================");
            Console.WriteLine(" NO | NIK / NAMA\t\t | Gaji\t\t |");
            Console.WriteLine("==================================================");
            for (int i = 0; i < karyawan.Count; i++)
            {
                Console.WriteLine(" {0}. | {1} {2} \t\t| {3} \t |", i + 1, karyawan[i].NIK, karyawan[i].Nama, karyawan[i].Gaji());
            }

            Console.ReadKey();
        }