Ejemplo n.º 1
0
        static void Main()
        {
            string first_name;
            string last_name;
            string addressOne;
            string addressTwo;
            string tel;
            string customerStatus;

            Customer       customer    = new Customer();
            AtmTransaction transaction = new AtmTransaction();

            System.Console.WriteLine("Hello are you an exisiting customer?: ");
            customerStatus = System.Console.ReadLine();

            //Check if customer answered with correct response

            customerStatus = transaction.CustomerInput(customerStatus.ToUpper());
            if (customerStatus == "N" || customerStatus == "NO")
            {
                System.Console.WriteLine("Hello Please enter your first name ");
                first_name = System.Console.ReadLine();
                System.Console.WriteLine("Please enter your last name");
                last_name = System.Console.ReadLine();
                System.Console.WriteLine("Please enter your address one");
                addressOne = System.Console.ReadLine();
                System.Console.WriteLine("Please enter your city and state");
                addressTwo = System.Console.ReadLine();
                System.Console.WriteLine("Please enter your telephone number");
                tel = System.Console.ReadLine();
                customer.SetCustomerInfo(first_name, last_name, addressOne, "", tel);
            }
        }
Ejemplo n.º 2
0
        static void Main()
        {
            string first_name;
            string last_name;
            string addressOne;
            string addressTwo;
            string tel;
            string customerStatus;

            Customer customer = new Customer();
            AtmTransaction transaction = new AtmTransaction();
            System.Console.WriteLine("Hello are you an exisiting customer?: ");
            customerStatus = System.Console.ReadLine();

            //Check if customer answered with correct response

            customerStatus = transaction.CustomerInput(customerStatus.ToUpper());
            if (customerStatus == "N" || customerStatus == "NO")
            {
                System.Console.WriteLine("Hello Please enter your first name ");
                first_name = System.Console.ReadLine();
                System.Console.WriteLine("Please enter your last name");
                last_name = System.Console.ReadLine();
                System.Console.WriteLine("Please enter your address one");
                addressOne = System.Console.ReadLine();
                System.Console.WriteLine("Please enter your city and state");
                addressTwo = System.Console.ReadLine();
                System.Console.WriteLine("Please enter your telephone number");
                tel = System.Console.ReadLine();
                customer.SetCustomerInfo(first_name, last_name, addressOne, "", tel);
            }
        }