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.WriteLine("Enter name of agent: ");
string agent = Console.ReadLine();
Console.WriteLine("Enter name of subject: ");
string subject = Console.ReadLine();
Console.WriteLine("Agent " + agent + " is " + " in " + subject[0]);
else if(agent == "end") {
Console.WriteLine("Agent " + agent + " is not yet employed");
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 name of agent");
string agent = Console.ReadLine();
for (int i = 0; i < 6; i++) {
if (agent.Equals(names[i])) {
num = (grades[0, index] + grades[1, index] + grades[2, index] + grades[3, index] + grades[4, index] + grades[5, index] ) / 6;
Console.WriteLine("Agent " + agent + "average is " + num);
Console.WriteLine("Agent " + agent + " is not yet employed");