Example #1
0
        static void Main(string[] args)
        {
            GeneralManager g1 = new GeneralManager("Sid", 15, 4000, "GM", "Micros");

            Console.WriteLine(g1.CalcNetSalary(g1.Basic));
            Console.ReadLine();
        }
Example #2
0
        static void Main(string[] args)
        {
            GeneralManager g1 = new GeneralManager("Samrat", 10, 2000, "GM", "ABC");

            Console.WriteLine(g1.CalcNetSalary(g1.Basic));

            Console.ReadLine();
        }
Example #3
0
            static void Main(string[] args)
            {
                GeneralManager o = new GeneralManager("abc", "SeniorManager", "Rahul", 60000, 1);

                Console.WriteLine(o.CalcNetSalary());
                // CEO o1 = new CEO("xyz", 60000, 2);
                //  Console.WriteLine(o1.CalcNetSalary());
                Console.ReadLine();
            }
        static void Main(string[] args)
        {
            GeneralManager g = new GeneralManager("Shubham", 10, 2000, "GM", "none");


            Console.WriteLine(g.CalcNetSalary(g.Basic));

            Console.ReadLine();
        }
Example #5
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);
            m.Insert();
            m.Upadte();
            m.Delete();

            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);
            g.Insert();
            g.Upadte();
            g.Delete();

            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());
            c.Insert();
            c.Upadte();
            c.Delete();

            Console.ReadLine();
        }
Example #6
0
        static void Main(string[] args)
        {
            Manager mg = new Manager("NoName", 100000, 15, "Manager");

            Console.WriteLine("EmpNo" + " " + "Ename" + " " + "Dept" + " " + "Designation" + " " + "Basic" + " " + "NetSalary");
            Console.WriteLine(mg.Empno + " | " + mg.Ename + " | " + mg.Dept + " | " + mg.Designations + " | " + mg.Basic + " | " + mg.CalcNetSalary(100000));
            Console.WriteLine("==========================================");
            GeneralManager gm = new GeneralManager("NoName");

            Console.WriteLine("EmpNo" + " " + "Ename" + " " + "Dept" + " " + "Designation" + " " + "Basic" + " " + "Perk" + " " + "NetSalary");
            Console.WriteLine(gm.Empno + " | " + gm.Ename + " | " + gm.Dept + " | " + gm.Designations + " | " + gm.Basic + " | " + gm.Perk + " | " + gm.CalcNetSalary(120000));
            Console.WriteLine("==========================================");
            CEO c = new CEO("NoName");

            Console.WriteLine("EmpNo" + " " + "Ename" + " " + "Dept" + " " + "Basic" + " " + "NetSalary");
            Console.WriteLine(c.Empno + " | " + c.Ename + " | " + c.Dept + " | " + c.Basic + " | " + c.CalcNetSalary(150000));
            Console.WriteLine("==========================================");
        }