Esempio n. 1
0
        static void Main( )
        {
            GeneralManager e1 = new GeneralManager("shiva", 20, 12000.0m, "HR", "hhhh");

            Console.WriteLine(e1.EmpNo);
            Console.WriteLine(e1.Name);
            Console.WriteLine(e1.DeptNo);
            Console.WriteLine(e1.Basic);
            Console.WriteLine(e1.CalcNetSalary());
            Console.WriteLine(e1.Designation);
            Console.WriteLine(e1.Perks);
            Console.WriteLine("==================");
            GeneralManager e2 = new GeneralManager("sham", 20, 13000.0m, "cs", "hhhh");

            Console.WriteLine(e2.EmpNo);
            Console.WriteLine(e2.Name);
            Console.WriteLine(e2.DeptNo);
            Console.WriteLine(e2.Basic);
            Console.WriteLine(e2.CalcNetSalary());
            Console.WriteLine(e2.Designation);
            Console.WriteLine(e2.Perks);
            Console.WriteLine(e1.EmpNo);
            Console.WriteLine(e2.EmpNo);
            Console.ReadLine();
        }
Esempio n. 2
0
        static void Main()
        {
            Console.WriteLine("Details");
            Console.WriteLine("Manager");
            Manager m = new Manager("UmeshM", 2, 50000, "Manager");

            Console.WriteLine("Employee ID : " + " " + m.EMPNO);
            Console.WriteLine("Name : " + " " + m.NAME);
            Console.WriteLine("Dept no : " + " " + m.DEPTNO);
            Console.WriteLine("Net salary : " + " " + m.CalcNetSalary());
            Console.WriteLine("Designation : " + " " + m.DESIGNATION);

            Console.WriteLine(" ");
            Console.WriteLine("General Manager");
            GeneralManager g = new GeneralManager("UmeshGM", 3, 60000, "General Manager", "perk1");

            Console.WriteLine("Employee ID : " + " " + g.EMPNO);
            Console.WriteLine("Name : " + " " + g.NAME);
            Console.WriteLine("Dept no : " + " " + g.DEPTNO);
            Console.WriteLine("Net Salary : " + " " + g.CalcNetSalary());
            Console.WriteLine("Designation : " + " " + g.DESIGNATION);


            Console.WriteLine(" ");
            Console.WriteLine("CEO");
            CEO c = new CEO("Umesh", 4, 70000);

            Console.WriteLine("Employee ID : " + " " + c.EMPNO);
            Console.WriteLine("Name : " + " " + c.NAME);
            Console.WriteLine("Dept no : " + " " + c.DEPTNO);
            Console.WriteLine("Net salary : " + " " + c.CalcNetSalary());

            Console.ReadLine();
        }
Esempio n. 3
0
        static void Main()
        {
            GeneralManager o = new GeneralManager("abc", "CEO", "dhanashri", 40000, 01);

            Console.WriteLine(o.CalcNetSalary());
            Console.ReadLine();
        }
Esempio n. 4
0
        static void Main(string[] args)
        {
            GeneralManager g = new GeneralManager("value", "cleark", "onkar", 30000, 1);

            Console.WriteLine(g.CalcNetSalary());
            Employee e = new CEO("vedant", 32000.5m, 2);

            Console.WriteLine(e.CalcNetSalary());
        }
Esempio n. 5
0
        static void Main(string[] args)
        {
            Manager mg = new Manager("Lalit", 12000, 20);

            Console.WriteLine("EmpNo" + " " + "Ename" + " " + "NetSalary" + " " + "Dept" + " " + "Designation");
            Console.WriteLine(mg.Empno + " " + mg.Ename + " " + mg.CalcNetSalary() + " " + mg.Dept + " " + mg.Designations);
            Console.WriteLine("==========================================");
            GeneralManager gm = new GeneralManager("Lalit", 12000, 20, "GM");

            Console.WriteLine("EmpNo" + " " + "Ename" + " " + "NetSalary" + " " + "Dept" + " " + "Designation" + " " + "perks");
            Console.WriteLine(gm.Empno + " " + gm.Ename + " " + gm.CalcNetSalary() + " " + gm.Dept + " " + gm.Designations + " " + gm.Perk);
            Console.ReadLine();
        }
Esempio n. 6
0
        static void Main(string[] args)
        {
            Manager        m  = new Manager("Sudarshan", 10, 15000, "Quality");
            GeneralManager gm = new GeneralManager("Sudhanshu", 20, 55000, "Design", "promoted");
            CEO            c  = new CEO("Mukesh", 40, 95000);

            m.Display();
            c.Display();

            Console.WriteLine(c.EMPNO + " " + c.NAME + " " + c.DEPTNO + " " + c.BASIC + " " + c.CalcNetSalary());

            Console.WriteLine(m.EMPNO + " " + m.NAME + " " + m.DEPTNO + " " + m.BASIC + " " + m.DESGN + " " + m.CalcNetSalary());

            Console.WriteLine(gm.EMPNO + " " + gm.NAME + " " + gm.DEPTNO + " " + gm.BASIC
                              + " " + gm.DESGN + " " + gm.PERKS + " " + gm.CalcNetSalary());

            Console.ReadLine();
        }
Esempio n. 7
0
        static void Main(string[] args)
        {
            Console.WriteLine("Manager");
            Manager m1 = new Manager("Aarti", 11, 17000000, "CEO");

            Console.WriteLine(m1.Name + "   " + m1.basic);
            Console.WriteLine("Net sal : " + m1.CalcNetSalary());


            Console.WriteLine("=========================================");
            GeneralManager g1 = new GeneralManager("Aarti", 12, 16000000, "CEO", "GOLD");

            Console.WriteLine(g1.Name + "   " + g1.basic);
            Console.WriteLine("Net sal : " + g1.CalcNetSalary());

            Console.WriteLine("=========================================");
            CEO c1 = new CEO("Aarti", 13, 20000000);

            Console.WriteLine(c1.Name + "   " + c1.basic);
            Console.WriteLine("Net sal : " + c1.CalcNetSalary());
            Console.ReadLine();
        }
Esempio n. 8
0
        static void Main(string[] args)
        {
            GeneralManager o = new GeneralManager("Bhatta", "ExManager", "Rajnikant", 50000, 10);

            Console.WriteLine(o.CalcNetSalary());
        }
Esempio n. 9
0
        static void Main()
        {
            Manager        m  = new Manager("Nik", 10, 15000, "Software");
            GeneralManager gm = new GeneralManager("Nick", 20, 55000, "logistics", "promoted");
            CEO            c  = new CEO("Nikk", 30, 95000);

            Console.WriteLine(c.EMPNO + " " + c.NAME + " " + c.DEPTNO + " " + c.BASIC + " " + c.CalcNetSalary());
            Console.WriteLine(m.EMPNO + " " + m.NAME + " " + m.DEPTNO + " " + m.BASIC + " " + m.DESGN + " " + m.CalcNetSalary());
            Console.WriteLine(gm.EMPNO + " " + gm.NAME + " " + gm.DEPTNO + " " + gm.BASIC + " " + gm.DESGN + " " + gm.PERKS + " " + gm.CalcNetSalary());

            Console.ReadLine();
        }
Esempio n. 10
0
        static void Main(string[] args)
        {
            CEO            c  = new CEO("Sachin", 1, 70000);
            Manager        m  = new Manager("kodag", 2, 50000, "IT");
            GeneralManager gm = new GeneralManager("Ashish", 3, 60000, "Sales", "promotion");

            Console.WriteLine(c.EMPNO + " " + c.NAME + " " + c.DEPTNO + " " + c.BASIC + " " + c.CalcNetSalary());
            Console.WriteLine(m.EMPNO + " " + m.NAME + " " + m.DEPTNO + " " + m.BASIC + " " + m.DESGN + " " + m.CalcNetSalary());
            Console.WriteLine(gm.EMPNO + " " + gm.NAME + " " + gm.DEPTNO + " " + gm.BASIC + " " + gm.DESGN + " " + gm.PERKS + " " + gm.CalcNetSalary());
            Console.ReadLine();
        }