public static void Main()
public static void Start()
string[] names = {"Ted", "Jack", "Jeffrey", "Carl", "Aileen", "Harold"};
string[] subjects = {"Math", "Science", "Reading"};
int[, ] grades = {{87, 76, 45, 54, 73, 62}, {78, 67, 54, 45, 37, 26}, {88, 77, 55, 44, 33, 66}};
Console.Write("Enter name of agent: ");
string name = Console.ReadLine();
Console.Write("Enter name of Subject: ");
string subject = Console.ReadLine();
for (int i = 0; i < 6; i++)
if (name.Equals(names[i]))
for (int s = 0; s < 3; s++)
if (subject.Equals(subjects[s]))
Console.WriteLine("Agent {0} is {1} in {2}", name, grades, subject);
Console.WriteLine("Agent {0} is not employeed", name);
public static void Start()
string[] names = {"Ted", "Jack", "Jeffrey", "Carl", "Aileen", "Harold"};
int[, ] grades = {{87, 76, 45, 54, 73, 62}, {87, 67, 54, 45, 37, 26}, {88, 77, 55, 44, 33, 66}, {86, 77, 55, 44, 33, 66}, {87, 76, 45, 54, 73, 62}, {87, 76, 45, 54, 73, 62}};
Console.WriteLine("Enter Agent Name: ");
String name = Console.ReadLine();
foreach (int g in grades)
Console.WriteLine("Agent {0} average is {1}", name, g);