public static void Main(string[] args)
{ 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.DChem + std.DBio )/6;
Console.WriteLine("С П Р А В К А");
Console.WriteLine("за успеха на {0}, номер {1} от {2} клас", std.name, std.id, std.clas);
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.DChem);
Console.WriteLine("Биология - {0,4:0.00}", std.DBio);
Console.WriteLine("Среден успех - {0,4:0.00}", std.Average);
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; } }