static void Main(string[] args)
        {
            List <IDreamTeam> serverSide = new List <IDreamTeam>();
            Dilshod           dilshod    = new Dilshod();
            Eliza             elize      = new Eliza();
            Jason             jason      = new Jason();

            serverSide.Add(dilshod);
            serverSide.Add(elize);
            serverSide.Add(jason);

            List <IDreamTeam> clientSide = new List <IDreamTeam>();
            Azim   azim   = new Azim();
            Ollie  ollie  = new Ollie();
            Jordan jordan = new Jordan();

            clientSide.Add(azim);
            clientSide.Add(ollie);
            clientSide.Add(jordan);

            foreach (var item in serverSide)
            {
                item.Work();
            }
            foreach (var item in clientSide)
            {
                item.Work();
            }
        }
Exemple #2
0
        static void Main(string[] args)
        {
            /*
             * Create two groups (i.e. List) that will hold three teammates each.
             * These two lists represent one team that will be the server side team,
             * and one that will be the client side team
             */
            List <IClassmate> serverSide = new List <IClassmate>();
            List <IClassmate> clientSide = new List <IClassmate>();

            //Instantiate one instance of each of your teammates.
            Jason  jason  = new Jason();
            Jordan jordan = new Jordan();
            Adam   adam   = new Adam();
            Ryan   ryan   = new Ryan();
            Ollie  ollie  = new Ollie();
            Aarti  aarti  = new Aarti();

            serverSide.Add(jason);
            serverSide.Add(aarti);
            serverSide.Add(adam);
            clientSide.Add(ryan);
            clientSide.Add(ollie);
            clientSide.Add(jordan);

            foreach (var s in serverSide)
            {
                s.Work();
            }

            foreach (var c1 in clientSide)
            {
                c1.Work();
            }
        }
Exemple #3
0
        static void Main(string[] args)
        {
            Console.WriteLine("He boo how you been?!");

            Eliza  eliza  = new Eliza();
            Jordan jordan = new Jordan();
            Ryan   ryan   = new Ryan();
            Jackie jackie = new Jackie();
            Ollie  ollie  = new Ollie();
            Tamela tamela = new Tamela();

            List <Iteammate> serverTeam = new List <Iteammate>()
            {
                eliza, jordan, ryan
            };

            List <Iteammate> clientTeam = new List <Iteammate>()
            {
                jackie, ollie, tamela
            };

            foreach (Iteammate member in serverTeam)
            {
                member.Work();
            }

            foreach (Iteammate member in clientTeam)
            {
                member.Work();
            }
        }
Exemple #4
0
        static void Main(string[] args)
        {
            List <IStudent> ClientSide = new List <IStudent>();
            List <IStudent> ServerSide = new List <IStudent>();

            Austin austin = new Austin();
            Jordan jordan = new Jordan();
            Jacob  jacob  = new Jacob();
            Brett  brett  = new Brett();
            Evan   evan   = new Evan();
            Jenn   jenn   = new Jenn();

            ClientSide.Add(austin);
            ClientSide.Add(jordan);
            ServerSide.Add(jacob);
            ClientSide.Add(brett);
            ServerSide.Add(evan);
            ClientSide.Add(jenn);

            foreach (IStudent student in ClientSide)
            {
                student.Work();
            }

            foreach (IStudent student in ServerSide)
            {
                student.Work();
            }
        }
        static void Main(string[] args)
        {
            Eliza eliza = new Eliza();

            eliza.Speciality = "Analytical";
            eliza.FirstName  = "Eliza";
            eliza.LastName   = "Meeks";

            Chaz chaz = new Chaz();

            chaz.Speciality = "Enthusiastic";
            chaz.FirstName  = "Chaz";
            chaz.LastName   = "Henricks";

            Andrew andrew = new Andrew();

            andrew.Speciality = "Accepting";
            andrew.FirstName  = "Andrew";
            andrew.LastName   = "Rock";

            Ryan ryan = new Ryan();

            ryan.Speciality = "Determined";
            ryan.FirstName  = "Ryan";
            ryan.LastName   = "McCarty";

            Jason jason = new Jason();

            jason.Speciality = "Sarcasm";
            jason.FirstName  = "Jason";
            jason.LastName   = "Smith";

            Jordan jordan = new Jordan();

            jordan.Speciality = "Enjoyable";
            jordan.FirstName  = "Jordan";
            jordan.LastName   = "Dhaenens";

            List <IClassmate> serverSide = new List <IClassmate>();
            List <IClassmate> clientSide = new List <IClassmate>();

            serverSide.Add(eliza);
            serverSide.Add(chaz);
            serverSide.Add(andrew);

            clientSide.Add(jason);
            clientSide.Add(ryan);
            clientSide.Add(jordan);

            foreach (IClassmate server in serverSide)
            {
                server.Work();
            }
            foreach (IClassmate client in clientSide)
            {
                client.Work();
            }
        }
Exemple #6
0
        static void Main(string[] args)
        {
            // Your job is to pick 5 of your teammates in your cohort and build a class for each one. Each teammate should have the following properties/methods. Build one for yourself, as well.

            // Specialty property - This holds the technology that the person enjoys the most.
            // FirstName property
            // LastName property
            // FullName property - This property is a readonly property that returns the first and last name concatenated.
            // Work() method - This will write a comical message to the console that describes the work they will do on a group project, based on their speciality.
            // Once you're done, you should have 6 different types in total, each with the properties and methods above.
            Chaz   chaz   = new Chaz();
            Eliza  eliza  = new Eliza();
            Ryan   ryan   = new Ryan();
            Jordan jordan = new Jordan();
            Jason  jason  = new Jason();


            List <IDreamTeam> FeatureTeam = new List <IDreamTeam>();

            FeatureTeam.Add(chaz);
            FeatureTeam.Add(eliza);
            FeatureTeam.Add(jason);


            List <IDreamTeam> BugTeam = new List <IDreamTeam>();

            BugTeam.Add(ryan);
            BugTeam.Add(jordan);
            // Create two groups (i.e. List) that will hold three teammates each. These two lists represent one team that will be the server side team, and one that will be the client side team.
            // Instantiate one instance of each of your teammates.
            // Put your teammates into the appropriate team.


            //Write two foreach loops that iterate over each List and makes each of the teammates do their work.

            foreach (var i in FeatureTeam)
            {
                i.Work();
            }

            foreach (var n in BugTeam)
            {
                n.Work();
            }
        }
Exemple #7
0
        static void Main(string[] args)
        {
            Ben      ben      = new Ben();
            Chaz     chaz     = new Chaz();
            Jordan   jordan   = new Jordan();
            Madeline madeline = new Madeline();
            Matt     matt     = new Matt();
            Mitchell mitchell = new Mitchell();

            List <IDreamTeam> clientSide = new List <IDreamTeam>()
            {
            };

            clientSide.Add(ben);
            clientSide.Add(chaz);
            clientSide.Add(jordan);

            List <IDreamTeam> serverSide = new List <IDreamTeam>()
            {
            };

            serverSide.Add(madeline);
            serverSide.Add(matt);
            serverSide.Add(mitchell);

            Console.WriteLine("Client Side teammates: ");
            foreach (IDreamTeam teammate in clientSide)
            {
                Console.WriteLine(teammate.FullName);
            }

            Console.WriteLine("Server Side teammates: ");
            foreach (IDreamTeam teammate in serverSide)
            {
                Console.WriteLine(teammate.FullName);
            }
        }