I don't think you should use a 2-d array here. Define a struct or class with all the properties you need like employee name, hours worked, tax etc. and then have an array (or other collection) of this object. Calculating the deducted amount would be a function of the class/struct and you'd be able to do the calculations required directly using the other class members.
Here's an example of what I mean:
namespace Example
{
class Program
{
class Employee
{
private const int HourlyRate = 55;
private const double TaxPercentage = 0.35;
public int Id { get; set; }
public string FullName { get; set; }
public int HoursWorked { get; set; }
public int DeductedAmount
{
get
{
return (int)((HoursWorked * HourlyRate) * (1 - TaxPercentage));
}
}
}
static void Main()
{
Employee emp1 = new Employee()
{
Id = 1,
FullName = "Joe Smith",
HoursWorked = 10
};
Employee emp2 = new Employee()
{
Id = 2,
FullName = "Sally Brown",
HoursWorked = 11
};
Employee[] employees = new Employee[] { emp1, emp2 };
foreach (var employee in employees)
{
Console.WriteLine("Employee: {0}", employee.FullName);
Console.WriteLine("Hours worked: {0}", employee.HoursWorked);
Console.WriteLine("Deducted amount: {0}", employee.DeductedAmount);
}
}
}
}