Epic Systems Interview Question
Software Engineer / Developersclass Program
{
static void Main(string[] args)
{
Console.WriteLine("Select the category of employee");
string category = Console.ReadLine();
char cat = Convert.ToChar(category);
Console.WriteLine("Input the base salary of employee");
string salary = Console.ReadLine();
int sal = Convert.ToInt16(salary);
int n =1;
Console.WriteLine("Input the increment");
string increment = Console.ReadLine();
int incr = Convert.ToInt16(increment);
if ((cat == 'A') && (incr >= n))
{
sal = sal + ((sal * incr) / 100);
if (sal > 50000)
Console.WriteLine("Total update salary is more than 50,000");
else
Console.WriteLine("Total Updated Salary is " + sal);
}
if ((cat == 'B') && (incr >= (2 * n)))
{
sal = sal + ((sal * incr) / 100);
if (sal > 50000)
Console.WriteLine("Total update salary is more than 50,000");
else
Console.WriteLine("Total Updated Salary is " + sal);
}
if ((cat == 'C') && (incr >= (3 * n)))
{
sal = sal + ((sal * incr) / 100);
if (sal > 50000)
Console.WriteLine("Total update salary is more than 50,000");
else
Console.WriteLine("Total Updated Salary is " + sal);
}
}
}
Is this Question Complete? Is there any thing more to it?
- sheik.kashif June 05, 2010Come on guys. Reply..