예제 #1
0
        static void Main()
        {
            //< Day 01
            //ExpenseReport.NumberCruncher(ExpenseReport.ImportData());

            //< Day 02
            //TobogganPassword.GetValidPasswords();

            //< Day 03
            //TobogganTrajectory.GetSlopeProducts();

            //< Day 04
            PassportProcessing.PassportCounter(PassportProcessing.ImportData());
            Console.ReadLine();

            //< Day 05
        }
예제 #2
0
        public static bool DetailsCheck(string passportUnparsed)
        {
            PassportProcessing passport = new PassportProcessing(passportUnparsed);

            if ((BirthYearCheck(passport.BirthYear)) && (IssueYearCheck(passport.IssueYear)) && (ExpirationYearCheck(passport.ExpirationYear)))
            {
                if ((HeightCheck(passport.Height)) && (HairColourCheck(passport.HairColour)) && (EyeColourCheck(passport.EyeColour)))
                {
                    if (PassportIDCheck(passport.PassportID))
                    {
                        Console.WriteLine(">> Passport valid <<\n");
                        return(true);
                    }
                }
            }

            return(false);
        }