using System.Runtime.ExceptionServices;
static void Main(string[] args)
const int maxSchools = 5;
string[] schoolNames = new string[maxSchools];
double[] numberOfTeachers = new double[maxSchools];
if (schoolCount >= maxSchools) throw new Exception();
schoolNames[schoolCount] = "School Number 1";
numberOfTeachers[schoolCount] = 300;
if (schoolCount >= maxSchools) throw new Exception();
schoolNames[schoolCount] = "School Number 2";
numberOfTeachers[schoolCount] = 500;
if (schoolCount >= maxSchools) throw new Exception();
schoolNames[schoolCount] = "School Number 3";
numberOfTeachers[schoolCount] = 200;
if (schoolCount >= maxSchools) throw new Exception();
schoolNames[schoolCount] = "School Number 4";
numberOfTeachers[schoolCount] = 400;