Ejemplo n.º 1
0
        public static void Main(string[] args)
        {
            Console.ForegroundColor = ConsoleColor.Yellow;


            ConsoleHelper.OutputHeading("BNU CO453 Applications Programming 2020 - 2021!");

            string[] choices  = { "Distance Converter", "BMI Calculator", "Student Marks", "Social Network" };
            int      choiceNo = ConsoleHelper.SelectChoice(choices);

            if (choiceNo == 1)
            {
                converter.ConvertDistance();
            }
            else if (choiceNo == 2)
            {
                calculator.BMICalculation();
            }
            else if (choiceNo == 3)
            {
                studentGrades.RunStudentGrades();
            }
            else if (choiceNo == 4)
            {
                app04.DisplayMenu();
            }
            else
            {
                Console.WriteLine("Invalid Choice");
            }
        }
Ejemplo n.º 2
0
        public static void Main(string[] args)
        {
            Console.ForegroundColor = ConsoleColor.Red;

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

            Console.WriteLine("1. Distance Converter");
            Console.WriteLine("2. BMI Calculator");
            Console.WriteLine("3. Student Marks");
            Console.WriteLine("4. Social Network");
            Console.WriteLine();



            Console.WriteLine("Please choose which app you would like to choose from > ");
            string choice = Console.ReadLine();

            if (choice == "1")
            {
                converter.ConvertDistance();
            }
            else if (choice == "2")
            {
                calculator.BMICalculation();
            }
            else if (choice == "3")
            {
                studentGrades.RunStudentGrades();
            }
            else if (choice == "4")
            {
                app04.DisplayMenu();
            }
            else
            {
                Console.WriteLine("Invalid Choice");
            }
        }