public string name, clas, id;
private double DBEL, dForeign, DMath, dPhys, dChem, dBio, average;
set {if (value >=1.00 && value<=12.00)this.DBEL = value;
else Console.WriteLine("Невъзможен клас!");}
set {this.dForeign = value;}
get {return this.dForeign;}
set {this.dMath = value;}
set {this.dPhys = value;}
set {this.dChem = value;}
set {this.average = value;}
get {return this.average;}
public static void Main()
Student std = new Student();
Console.WriteLine("Въведете име:");
std.name = Console.ReadLine();
Console.WriteLine("Въведете клас:");
std.clas = Console.ReadLine();
Console.WriteLine("Въведете номер:");
std.id = Console.ReadLine();
Console.WriteLine("Оценка по БЕЛ:");
std.dBEL = double.Parse(Console.ReadLine());
Console.WriteLine("Оценка по Чужд език:");
std.DForeign = double.Parse(Console.ReadLine());
Console.WriteLine("Оценка по Математика:");
std.dMath = double.Parse(Console.ReadLine());
Console.WriteLine("Оценка по Физика:");
std.DPhys = double.Parse(Console.ReadLine());
Console.WriteLine("Оценка по Биология:");
std.DBio = double.Parse(Console.ReadLine());
Console.WriteLine("Оценка по Химия:");
std.DChem = double.Parse(Console.ReadLine());
std.Average = (std.dBEL + std.DForeign + std.DBio +std.DChem + std.DPhys + std.dMath)/6;
Console.WriteLine("СПРАВКА");
Console.WriteLine("за успеха на {0}, ученик от",std.name);
Console.WriteLine("{0} клас, номер {1}", std.clas,std.id);
Console.WriteLine("БЕЛ - {0,4:0.00}", std.dBEL);
Console.WriteLine("Чужд език - {0,4:0.00}", std.DForeign);
Console.WriteLine("Математика - {0,4:0.00}", std.dMath);
Console.WriteLine("Физика - {0,4:0.00}", std.DPhys);
Console.WriteLine("Биология - {0,4:0.00}", std.DBio);
Console.WriteLine("Химия - {0,4:0.00}", std.DChem);
Console.WriteLine("Среден успех - {0,4:0.00}", std.Average);