Team and Tool: XAML,C#, DLL Starter Animal Simulator Project Wiki Estimated reading: 3 minutes 161 views Contributors Welcome to the Animal Simulator Project Wiki! This resource is designed to guide students through the creation of a dynamic link library (DLL) for simulating animal behaviors, which is a key part of the Animal Simulator Interface assignment for Computer Science CS 110. Here, you’ll find information on the project’s objectives, instructions for creating and using the DLL, and tips for successful implementation.Project OverviewThe Animal Simulator Project involves two main components:Creating a DLL (Dynamic Link Library): This DLL will contain code that simulates various animal behaviors such as eating, sleeping, running, and playing. Developing a GUI (Graphical User Interface): Using XAML, students will create an interface that allows users to interact with the simulated animal by triggering its behaviors through buttons.ObjectiveUnderstand the basics of DLL creation and usage in C#. Learn to design and implement a GUI using XAML in Visual Studio. Explore the integration of a back-end DLL with a front-end GUI.Part 1: Creating the DLLStep-by-Step GuideOpen Visual Studio and create a new Class Library project. Name it AnimalBehaviors. Define a public class named Animal within the AnimalBehaviors namespace. This class will contain methods representing the animal’s behaviors. Implement the following methods in the Animal class:public string Eat(string food) – Returns a string indicating what the animal is eating. public string Sleep() – Returns a string indicating that the animal is sleeping. public string Run() – Returns a string indicating that the animal is running. public string Play() – Returns a string indicating that the animal is playing. Build the solution to generate the DLL file.Example Code:namespace AnimalBehaviors { public class Animal { public string Eat(string food) { return $"The animal is eating {food}."; } public string Sleep() { return "The animal is sleeping."; } public string Run() { return "The animal is running."; } public string Play() { return "The animal is playing."; } } } Part 2: Using the DLL in a ProjectAdding the DLL to Your ProjectIn Visual Studio, create a new WPF App project for the GUI. Right-click on the project in Solution Explorer, select “Add” > “Reference…”. Click “Browse” and navigate to the AnimalBehaviors.dll file. Select it and click “Add”.Integrating the DLL with the GUIIn your WPF project, you can now create buttons for each animal behavior. Use event handlers to call the methods from your AnimalBehaviors DLL and display the results in the GUI.Tips for SuccessTest Your DLL: Before integrating with the GUI, test your DLL methods to ensure they return the expected results. Use Descriptive Method Names: This makes it easier for others (and yourself) to understand what each method does. Document Your Code: Adding comments and documentation helps with code maintenance and clarity.ConclusionCreating a DLL for the Animal Simulator Project not only helps in understanding the structure and usage of libraries in software development but also provides a practical example of how back-end logic can be separated from front-end interfaces. This wiki serves as a starting point for students to create and integrate DLLs in their projects.