Exemple #1
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();
        }
Exemple #2
0
        static void Main(string[] args)
        {
            //Employee Class
            Employee e1 = new Employee("Priyanka", 123456, 1);

            e1.Display();
            e1.GetNetSalary();
            Console.WriteLine("");
            //Manager class
            Manager m1 = new Manager("Roshan", 10, 120321, "Manager");

            m1.Display();

            Console.WriteLine("");
            //Programmer Class
            Programmer p1 = new Programmer("palak", 3, 6000);

            p1.Display();
            Console.WriteLine("");
            //GEnaral Manager Class
            GeneralManager g1 = new GeneralManager("Piyu", 4, 53210, "Manager", " Senior ");

            g1.Display();

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

            Console.WriteLine(o.CalcNetSalary());
            Console.ReadLine();
        }
Exemple #4
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();
        }
Exemple #5
0
        static void Main()
        {
            Manager m = new Manager("Siddhu", 10000, 100, "Developer");

            m.Show();
            m.Insert();
            m.Update();
            m.Delete();

            GeneralManager gm = new GeneralManager("Rani", 20000, 101, "Tester", "Perks1");

            gm.Show();
            gm.Insert();
            gm.Update();
            gm.Delete();

            CEO c = new CEO("Manju", 32000, 102);

            c.Show();
            c.Insert();
            c.Update();
            c.Delete();

            Console.ReadLine();
        }
Exemple #6
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());
        }
Exemple #7
0
        static void Main(string[] args)
        {
            GeneralManager o = new GeneralManager();
            //o.GetNetSalary();

            CEO r = new CEO();

            //o.GetNetSalary();
            Console.ReadLine();
        }
Exemple #8
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();
        }
Exemple #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();
        }
Exemple #10
0
        static void Main(string[] args)
        {
            GeneralManager g1 = new GeneralManager("samrat", 2, 2000, "GM", "none");

            Manager m1 = new Manager("samrat", 2, 2000, "M");

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



            Console.ReadLine();
        }
Exemple #11
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();
        }
Exemple #12
0
        static void Main(string[] args)
        {
            //public Manager(string name, decimal deptNo, string designation, decimal basic)
            Manager m = new Manager("jit", 04, "man", 2500);

            Console.WriteLine(m.Name + " " + m.DeptNo + " " + m.Designation + " " + m.Basic);

            //GeneralManager(string name, short deptNo, decimal basic, string perks) : base(name, deptNo, basic)
            GeneralManager gm = new GeneralManager("jit", 04, 25000, "allow");

            Console.WriteLine(gm.Name + " " + gm.DeptNo + " " + gm.Perks + " " + gm.Basic);
            //Ceo(string name = "unnamed", short deptNo = 5, decimal basic = 100000)
            Ceo c = new Ceo();

            Console.WriteLine(c.Name + " " + c.DeptNo + " " + " " + c.Basic);
        }
Exemple #13
0
        static void Main(string[] args)
        {
            Employee m  = new Manager();
            Employee m1 = new Manager("Sushant", 10, 26000, "Devloper");
            Employee m2 = new GeneralManager("Sus", 10, 50000);
            Employee m3 = new CEO("Tushar", 20, 600000);

            //Console.WriteLine(m1.EmpNo+" "+ m1.Name +" "+ m1.Basic+" "+m1.Dept);
            //Console.WriteLine(m2.EmpNo + " " + m2.Name + " " + m2.Basic + " " + m2.Dept);
            //Console.WriteLine();
            //Console.WriteLine(m2.EmpNo + " " + m2.Name + " " + m2.Basic + " " + m2.Dept);
            //Console.WriteLine(m1.EmpNo + " " + m1.Name + " " + m1.Basic + " " + m1.Dept);
            m1.show();
            m2.show();
            m3.show();
            Console.ReadLine();
        }
        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();
        }
Exemple #15
0
        static void Main(string[] args)
        {
            Manager m1 = new Manager();

            Console.WriteLine(m1.EMPNO);

            GeneralManager gm1 = new GeneralManager();

            Console.WriteLine(gm1.EMPNO);

            Employee e1 = new Manager();

            Console.WriteLine(e1.EMPNO);

            Employee e2 = new GeneralManager();

            Console.WriteLine(e2.EMPNO);
        }
Exemple #16
0
        static void Main(string[] args)
        {
            //Manager class
            Manager m1 = new Manager("Roshan", 10, 15500, "Manager");

            m1.Display();

            Console.WriteLine("");
            //Programmer Class
            Programmer p1 = new Programmer("palak", 3, 6000);

            p1.Display();
            Console.WriteLine("");
            //GEnaral Manager Class
            GeneralManager g1 = new GeneralManager("Piyu", 4, 53210, "Manager", " Senior ");

            g1.Display();

            Console.ReadLine();
        }
Exemple #17
0
        static void Main(string[] args)
        {
            Employee e = new Manager("Manager", "mgr", 53000, 1);

            Console.WriteLine("Empid: " + e.EMPNO + ", Name: " + e.NAME + ", Basic salary: " + e.BASIC + ", Dept No: " + e.DEPTNO);
            Console.ReadLine();

            Manager m = new GeneralManager("GM", "", 25000);

            Console.WriteLine("Empid: " + m.EMPNO + ", Name: " + m.NAME + ", Basic salary: " + m.BASIC);
            Console.ReadLine();
            Employee ceo = new CEO("", 200000);

            Console.WriteLine("Empid: " + ceo.EMPNO + ", Name: " + ceo.NAME + ", Basic salary: " + ceo.BASIC + ", Net salary: " + ceo.CalcNetSalary());
            Console.ReadLine();

            Employee ceo1 = new CEO("CEO", 1000);

            Console.WriteLine("Empid: " + ceo1.EMPNO + ", Name: " + ceo1.NAME + ", Basic salary: " + ceo1.BASIC + ", Net salary: " + ceo1.CalcNetSalary());
            Console.ReadLine();
        }
Exemple #18
0
        static void Main()
        {
            Console.WriteLine("manager");
            Manager m1 = new Manager("Ashish", 6000000, 1, "HR");

            Console.WriteLine("name " + m1.NAME);
            Console.WriteLine("net salary == " + m1.CalNetSalary());
            Console.WriteLine("===========================================");
            Console.WriteLine("general manager");
            GeneralManager gm1 = new GeneralManager("Supriya", 900000, 1, "GM", "abcde");

            Console.WriteLine("name " + gm1.NAME);
            Console.WriteLine("net salary == " + gm1.CalNetSalary());
            Console.WriteLine("===========================================");
            Console.WriteLine("CEO");
            CEO c1 = new CEO("Ashish", 700000, 4);

            Console.WriteLine("name " + c1.NAME);
            Console.WriteLine("net salary == " + c1.CalNetSalary());
            Console.WriteLine("===========================================");
            Console.ReadLine();
        }
        static void Main()
        {
            Console.WriteLine("manager");
            Manager m1 = new Manager("Akshay", 7000000, 1, "HR");

            Console.WriteLine("name " + m1.NAME);
            Console.WriteLine("net salary == " + m1.CalNetSalary());
            Console.WriteLine("===========================================");
            Console.WriteLine("general manager");
            GeneralManager gm1 = new GeneralManager("Ridham", 1000000, 1, "GM", "abccc");

            Console.WriteLine("name " + gm1.NAME);
            Console.WriteLine("net salary == " + gm1.CalNetSalary());
            Console.WriteLine("===========================================");
            Console.WriteLine("CEO");
            CEO c1 = new CEO("akash", 800000, 4);

            Console.WriteLine("name " + c1.NAME);
            Console.WriteLine("net salary == " + c1.CalNetSalary());
            Console.WriteLine("===========================================");
            Console.ReadLine();
        }
Exemple #20
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();
        }
Exemple #21
0
        static void Main(string[] args)
        {
            Console.WriteLine("in main");

            Manager obj1 = new GeneralManager("Ram", 10, 50000, "Software developer", "Vacation & Paid Time Off");

            Console.WriteLine(obj1.Basic);
            Console.WriteLine(obj1.Name);
            Console.WriteLine(obj1.Deptno);
            Console.WriteLine(obj1.Empno);
            Console.WriteLine(obj1.Designation);
            Console.WriteLine("=================");


            CEO obj = new CEO("Raam", 20, 150000);//

            Console.WriteLine(obj.CalcNetSalary());
            Console.WriteLine(obj.Name);
            Console.WriteLine(obj.Deptno);
            Console.WriteLine(obj.Empno);
            Console.WriteLine("=================");

            Console.ReadLine();
        }
        static void Main(string[] args)
        {
            GeneralManager o = new GeneralManager("Bhatta", "ExManager", "Rajnikant", 50000, 10);

            Console.WriteLine(o.CalcNetSalary());
        }