private double dBEL, dForeign, dMath, dPhys, dChem, dBio;
{ set {this.dBEL = value; } get {return this.dBEL; } }
{ set {this.dForeign = value; } get {return this.DForeign; } }
{ 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.DForeign = 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 = (std.DBEL + std.DForeign + std.DMath + std.DPhys + std.DBio + std.DChem) /6;
Console.WriteLine(" С П Р А В К А");
Console.WriteLine("за успеха на {0} ученик от", std.name);
Console.WriteLine("{0} клас, nomer {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);