using System; using System.Windows.Forms; class Grades { const float ENGL_TEST = .25F; const float ENGL_EXAM = .25F; const float ENGL_RESEARCH = .30F; const float ENGL_PRESENTATION = .20F; static string fio = ""; static int test = 0; static int exam = 0; static int research = 0; static int presentation = 0; static float finalGrade = 0; static string response; static void Main(string[] args) { Console.Write("ФИО учащегося: "); response = Console.ReadLine(); fio = response; Console.Write("Оценка за тест: "); response = Console.ReadLine(); test = int.Parse(response); Console.Write("Оценка за экзамен: "); response = Console.ReadLine(); exam = int.Parse(response); Console.Write("Оценка за реферат: "); response = Console.ReadLine(); research = int.Parse(response); Console.Write("Оценка за выступление: "); response = Console.ReadLine(); presentation = int.Parse(response); finalGrade = (test * ENGL_TEST) + (exam * ENGL_EXAM) + (research * ENGL_RESEARCH) + (presentation * ENGL_PRESENTATION); MessageBox.Show("**Класс с углубленным изучением иностранных языков**\n\n" + "ФИО учащегося: " + fio + "\n" + "Оценка за тест: " + test + "\n" + "Оценка за экзамен: " + exam + "\n" + "Оценка за реферат: " + research + "\n" + "Оценка за выступление: " + presentation + "\n"+ "\n"+ "Итоговая оценка: " + finalGrade, "Расчет итоговой оценки", MessageBoxButtons.OK, MessageBoxIcon.Information); } }