Esempio n. 1
0
        /// <summary>
        /// This method will print the heading title.
        /// conrol the color of the text.
        /// And run both distance converter and BMI application.
        /// </summary>
        /// <param name="args"></param>
        public static void Main(string[] args)
        {
            Console.ForegroundColor = ConsoleColor.Yellow;

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

            string [] choices = { " Distance Converter", " BMI Calculator", " Student Grades",
                                  " Social Network",     " RPG Game" };

            int choice = ConsoleHelper.SelectChoice(choices);

            if (choice == 1)
            {
                DistanceConverter converter = new DistanceConverter();
                converter.ConvertDistance();
            }
            else if (choice == 2)
            {
                App02.BMI calculator = new App02.BMI();
                calculator.Run();
            }
            else if (choice == 3)
            {
                StudentGrades grader = new StudentGrades();
                grader.Run();
            }
            else if (choice == 4)
            {
                SocialNetwork social = new SocialNetwork();
                social.Run();
            }
        }
Esempio n. 2
0
        public static void Main(string[] args)
        {
            //Console.ForegroundColor = ConsoleColor.Black;

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

            string[] choice = { "Distance Converter", "BMI Calculator",
                                "Student Marks",      "Social Network" };


            int choiceNo = ConsoleHelper.SelectChoices(choice);

            if (choiceNo == 1)
            {
                DistanceConverter converter = new DistanceConverter();
                converter.Run();
            }
            else if (choiceNo == 2)
            {
                BMI calculator = new BMI();
                calculator.Run();
            }
            else if (choiceNo == 3)
            {
                StudentGrades studentGrades = new StudentGrades();
                studentGrades.Run();
            }
            else if (choiceNo == 4)
            {
                app04.DisplayMenu();
            }
        }
Esempio n. 3
0
        public static void Main(string[] args)
        {
            Console.Clear();
            Console.ForegroundColor = ConsoleColor.White;

            Console.WriteLine("BNU CO453 Applications Programming Jan start");
            Console.WriteLine("Evan Castro");
            Console.WriteLine();

            string[] choices = new string[]
            {
                "Distance Coverter",
                "BMI Calculator",
                "Student Grades",
                "Social Network",
                "RSP Game"
            };

            ConsoleHelper.OutputTitle("Please select the application you wish to use ");
            choice = ConsoleHelper.SelectChoice(choices);

            if (choice == 1)
            {
                DistanceConverter converter = new DistanceConverter();
                converter.Run();
            }
            else if (choice == 2)
            {
                BMICalculator calculator = new BMICalculator();
                calculator.Run();
            }
            else if (choice == 3)
            {
                StudentGrades grades = new StudentGrades();
                grades.Run();
            }
            else if (choice == 4)
            {
                NetworkApp App04 = new NetworkApp();
                App04.DisplayMenu();
            }
            else if (choice == 5)
            {
                RPSGame game = new RPSGame();
                game.Run();
            }
        }
Esempio n. 4
0
        public static void Main(string[] args)
        {
            Console.Clear();
            Console.ForegroundColor = ConsoleColor.White;

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

            string[] choices = new string[]
            {
                "Distance Coverter",
                "BMI Calculator",
                "Student Grades",
                "Network App"
            };

            ConsoleHelper.OutputTitle("Please select the application you wish to use ");
            choice = ConsoleHelper.SelectChoice(choices);

            if (choice == 1)
            {
                DistanceConverter converter = new DistanceConverter();
                converter.Run();
            }
            else if (choice == 2)
            {
                BMI_Calculator calculator = new BMI_Calculator();
                calculator.Run();
            }
            else if (choice == 3)
            {
                StudentGrades studentGrades = new StudentGrades();
                studentGrades.Run();
            }
            else if (choice == 4)
            {
                NetworkApp network = new NetworkApp();
                network.Run();
            }
        }
Esempio n. 5
0
        public static void Main(string[] args)
        {
            Console.ForegroundColor = ConsoleColor.Yellow;

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

            Console.WriteLine();
            Console.WriteLine($" 1. App01 Distance Converter");
            Console.WriteLine($" 2. App02 BMI");
            Console.WriteLine($" 3. App03 Student Grades");
            Console.WriteLine($" 4. App04 Social Network");

            Console.Write("Please select an app > ");
            string choice = Console.ReadLine();


            if (choice.Equals("1"))
            {
                DistanceConverter converter = new DistanceConverter();
                converter.CalculatetoDistance();
            }
            else if (choice == "2")
            {
                BMI bmi = new BMI();
                bmi.Run();
            }
            else if (choice.Equals("3"))
            {
                StudentGrades studentGrades = new StudentGrades();
                studentGrades.Run();
            }
            else if (choice.Equals("4"))
            {
                NetworkApp app04 = new NetworkApp();
                app04.DisplayMenu();
            }
        }