Пример #1
0
        public static void Main()
        {
            Console.ForegroundColor = ConsoleColor.Yellow;

            Console.WriteLine("BNU CO453 Applications Programming 2020-2021!");
            Console.WriteLine();
            Console.Beep();

            Console.WriteLine("1. Distance converter");
            Console.WriteLine("2. BMI Calculator");
            Console.WriteLine("3. Student Grades");
            Console.WriteLine("4. Student Grades");
            Console.WriteLine("5. Student Grades");

            Console.WriteLine(0);

            Console.WriteLine("Select an applocation  ");
            string choice = Console.ReadLine();

            if (choice == "1")
            {
                DistanceConverter converter = new DistanceConverter();
                converter.MilesToFeet();
                converter.MetresToMiles();
                converter.KilometresToMiles();
                converter.MilesToFeet2();
                converter.MetresToMiles2();
                converter.KilometresToMiles2();
                converter.MetresTofeet();
                converter.FeetToMetres();
            }
            else if (choice == "2")
            {
            }
            else if (choice == "3")
            {
                StudentMarks students = new StudentMarks();
                students.Run();
            }
            else if (choice == "4")
            {
                Socialnet social = new Socialnet();
                social.Run();
            }
            else if (choice == "5")
            {
                StudentMarks students = new StudentMarks();
                students.Run();
            }


            // BMI calculator = new BMI();
            // BMI();
            //     Console.ReadLine();
        }