using System.Collections.Generic;
using System.Threading.Tasks;
using System.Collections;
static ArrayList student = new ArrayList { };
static void Main(string[] args)
student.Add("bob,0, 0, 0, 0, 0");
student.Add("steve,0, 0, 0, 0, 0");
student.Add("jim,0, 0, 0, 0, 0");
student.Add("kim,0, 0, 0, 0, 0");
student.Add("sally,0,0,0,0,0");
Console.WriteLine("what do you want to do?");
cho = Console.ReadLine();
Console.WriteLine("invalid submision");
string student, edit, temp, name;
int tempst, i, s = -1, t = 0, final, programs, c, test1, test2;
Console.WriteLine("whose grades would you like to edit?");
student = Console.ReadLine();
tempst = int.Parse(student);
Console.WriteLine("invalid student");
temp = student[i].ToString();
name = temp.Substring(0, c);
test1 = int.Parse(temp.Substring(c + 1, 2));
test2 = int.Parse(temp.Substring(c + 1, 2));
programs = int.Parse(temp.Substring(c + 1, 2));
final = int.Parse(temp.Substring(c + 1, 2));
Console.WriteLine("{0} {1} {2} {3} {4}", name, test1, test2, programs, final);
Console.WriteLine("what grade would you like to edit?");
Console.WriteLine("1 - test1, 2 - test2, 3 - programs, 4 - finals?");
edit = Console.ReadLine();
Console.WriteLine("what is your new score");
Console.WriteLine("what is your new score");
Console.WriteLine("what is your new score");
Console.WriteLine("what is your new score");
Console.WriteLine("whose grades would you like to see?");
student = Console.ReadLine();
tempst = int.Parse(student);
temp = student[i].ToString();
Console.WriteLine(" {0} ");
int test1, test2, program, final, i, c, s;
Console.WriteLine(" name test1 test2 programs final");
temp = student[i].ToString();
name = temp.Substring(0, c);
test1 = int.Parse(temp.Substring(c + 1, 2));
test2 = int.Parse(temp.Substring(c + 1, 2));
program = int.Parse(temp.Substring(c + 1, 2));
final = int.Parse(temp.Substring(c + 1, 2));
Console.WriteLine("{0} {1} {2} {3} {4}", name, test1, test2, program, final);
int test1, test2, program, final, i, c, s;
temp = student[i].ToString();
name = temp.Substring(0, c);
test1 = int.Parse(temp.Substring(c + 1, 2));
test2 = int.Parse(temp.Substring(c + 1, 2));
program = int.Parse(temp.Substring(c + 1, 2));
final = int.Parse(temp.Substring(c + 1, 2));
Console.WriteLine("{0} {1} {2} {3} {4}", name, test1, test2, program, final);