Exemple #1
0
   public static void Controller2()
   {
       MemberInfo myMemberInfo3 = new MemberInfo();
       Console.WriteLine("After venting the FOB, what should you do next?");
       Console.WriteLine("Should you 1 - reset the pin or 2 - release the ball? Please select a number.");
   int selection = int.Parse(Console.ReadLine());
   if (selection == 1)
   {
       string nope = myMemberInfo3.sSecondStepNotCorrect();
       Console.WriteLine(nope);
       Console.WriteLine("You should have released the ball.");
       Console.ReadLine();
       Controller2();
   }
   else if (selection == 2)
   {
       string alright = myMemberInfo3.sSecondStepCorrect();
       Console.WriteLine(alright);
   }else{
       string result = "Please make a choice of one of the two options. Press enter to continue.";
       Console.WriteLine(result);
       Console.ReadLine();
       Controller2();
   }
   Controller3();
 }
Exemple #2
0
        static void Main(string[] args)
        {
            
           myMemberInfo = new MemberInfo();
           

           Console.WriteLine("Enter your first name.");
           string sFirstName = Console.ReadLine();
           Console.WriteLine("Enter your last name.");
           string sLastName = Console.ReadLine();
           Console.WriteLine("What is your job position at your establishment?");
           string sJobPosition = Console.ReadLine();
           Console.WriteLine("How many years have you been in your current role at your establishment?");
           int iYearsAtEstab = int.Parse(Console.ReadLine());

            string sResult = myMemberInfo.MemberInfoAdd(sFirstName, sLastName, sJobPosition, iYearsAtEstab);
            Console.WriteLine(sResult);
            Console.ReadLine();
            Controller();
            
        }
Exemple #3
0
        public static void Controller3()
        {
            MemberInfo myMemberInfo4 = new MemberInfo();
            Console.WriteLine("After releasing the ball, what is the last thing you have to do? 1 - Reset the pin or 2-Vent again?");
            int option = int.Parse(Console.ReadLine());

            if (option==1){
                string yes3 = myMemberInfo4.sThirdStepCorrect();
                Console.WriteLine(yes3);
                Console.ReadLine();

            }else if(option ==2){
                string no3 = myMemberInfo4.sThirdStepNotCorrect();
                Console.WriteLine(no3);
                Console.ReadLine();
                Controller3();

            }else{
                string result = "Please make a choice of one of the two options.";
                Console.WriteLine(result);
                Console.ReadLine();
                Controller3();
            }
            Console.WriteLine("You have completed the trainer, press any key to close.");
            Console.ReadLine();
        }