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 Subject of agent:");
string sub = Console.ReadLine();
for (int i = 0; i < 6; i++)
if (index >= 0 && index >= 0)
Console.WriteLine("Agent " + name + " is " + grades[index, index] + " in " + sub);
Console.WriteLine("Agent " + name + " is not yet employed.");
Console.WriteLine(sub + " is not yet available.");
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 the name of the agent");
name = Console.ReadLine();
if (name.Equals(names[counterforName]))
indexforName = counterforName;
while (counterforName < 6);
avgGrade += grades[counterforGrade, counterforName];
while (counterforGrade < 6);
Console.WriteLine("Agent {0} average is {1}", name, (avgGrade / 6).ToString("0.0#"));
Console.WriteLine("Would you like to try again ? Type '1' for yes '0' for no");
int choice = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("Agent {0} is not yet employed.", name);
Console.WriteLine("Would you like to try again ? Type '1' for yes '0' for no");
int choice = Convert.ToInt32(Console.ReadLine());