Beispiel #1
0
        public static void Happiness(string[] arg)
        {
            string input;

            Console.WriteLine("Enter armstod configuration:");
            input = Console.ReadLine().ToUpper();
            Console.Clear();
            Console.WriteLine("Configuration: " + input);
            Console.WriteLine("Happiness: " + Armstod.CalculateHappiness(input));
            Console.ReadLine();
        }
Beispiel #2
0
        static void Main(string[] args)
        {
            switch (uppgift)
            {
            default:
            case Uppgifter.ARMSTOD:
                Armstod.Happiness(args);
                break;

            case Uppgifter.DUTUB:
                DuTub.Efficiency(args);
                break;
            }
        }