private double dBEL, dForegin, dMath, dPhys, dChem, dBio;
{ set {this.dBEL = value;} get{return this.dBEL;} }
{ set {this.dForegin = value;} get{return this.dForegin;} }
{ set {this.dMath = value;} get{return this.dMath;} }
{ set {this.dPhys = value;} get{return this.dPhys;} }
{ set {this.dChem = value;} get{return this.dChem;} }
{ set {this.dBio= value;} get{return this.dBio;} }
{ set {this.average= value;} get{return this.average;} }
public static void Main()
Student std= new Student();
Console.Write("Въведи име:"); std.name =Console.ReadLine();
Console.Write("Въведи клас:"); std.clas= Console.ReadLine();
Console.Write("Въведи номер:"); std.id =Console.ReadLine();
Console.Write("Оценка БЕЛ:");
std.DBEL =double.Parse(Console.ReadLine());
Console.Write("Оценка Чужд език:");
std.DForegin =double.Parse(Console.ReadLine());
Console.Write("Оценка Математика:");
std.DMath =double.Parse(Console.ReadLine());
Console.Write("Оценка Физика:");
std.DPhys =double.Parse(Console.ReadLine());
Console.Write("Оценка Биология:");
std.DBio =double.Parse(Console.ReadLine());
Console.Write("Оценка Химия:");
std.DChem =double.Parse(Console.ReadLine());
std.Average=calcAvarage(std);
static double calcAvarage(Student std)
{return(std.DBEL + std.DForegin + std.DMath + std.DPhys + std.DBio +std.DChem) /6;}
static void spravka(Student std)
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.DForegin);
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.DBEL);
Console.WriteLine("Среден успех - {0,4:0.00}", std.Average);