malek sh

malek sh

  • NA
  • 17
  • 2.3k

sum and delete in array

Dec 16 2021 1:57 PM

I want to collect items Emp_add
And I want to delete an employee with his data

???

    int emp_id;
    string Emp_Name;
    int Emp_Salary;//cost salary in one hour
    double Emp_Department;//number hours work
    double Emp_add;//hours add
    double Emp_total;
    double Emp_tax;//clcluter tax in end month
    double Emp_inmonth;//salary after tax
    double Emp_addn;//edite hours add
    double Emp_ave;//clculter  salary average in month
    static void Main(string[] args)
    {
        // Geeks data
        List<Geek> Geeks = new List<Geek>()
    { 
        new Geek{emp_id = 1, Emp_Name = "Sumit",
                Emp_Salary = 15, Emp_Department = 1,Emp_add=1,},
        new Geek{emp_id = 2, Emp_Name = "Rohan",
                Emp_Salary = 65000, Emp_Department = 2,Emp_add=1},
        new Geek{emp_id = 3, Emp_Name = "Mohit",

}


Answers (1)