- The show cage console command displays the cage and its occupants as text, including their current positions.
ShowCage method to ConsoleHelper as specified in the diagram below.
ShowCage methodanimalName parameter.ToString method.ProcessShowCommand method, add a case statement for "cage". In it, call the ShowCage method.
Cage class, override the ToString method{AnimalType.Name} cage ({Width} x {Height})cagedItems.For each item, use string interpolation to add the following information to the result variable:
{Environment.NewLine}{cagedItem} ({cagedItem.XPosition} x {cagedItem.YPosition})ShowCage methodFindCage in an if statement that checks if the animal is null.If it is, write a message to the Console.
Console.WriteLine in an if statement that checks if the cage is null.If it is, write a message to the Console.
AddAnimal calls from the window loaded event handler to the NewZoo method in the Zoo class so the console has some pre-populated animals.The cage's information and both dingoes' information should be written to the console.

Notice that the dingoes' XPositions have changed. This is because animals are always moving when the application is running, whether a cage window is open in the WPF application or not.
Press enter on the show cage command again to show the new values.
Move method and paste it inside the ostrich's Move method. Do not call base.NewZoo method.The platypus should appear in the cage window, but it should not move because it overrides the mammal's Move method without calling base.
Move method, write code to simulate swimming.Then it switches its vertical direction.
MoveDistance instead of add.Move method and paste it in the platypus's Move method.The shark should be moving diagonally across the cage window. When it hits the left or right edge, it should change horizontal direction (and only horizontal direction). When it hits the top or bottom edge, it should change vertical direction (and only vertical direction).
It should be moving in the same way as the shark. The result should look similar to the image below.

Move method, write code to simulate flying.VerticalDirection each time it moves (every time the Move method is called).The eagle should be steadily moving horizontally across the window. It should be moving alternately up and down each time it moves.
The result should look similar to the image below.

The hummingbird should appear in the cage window, but it should not move because it overrides the bird's Move method without calling base.
Animal class as specified in the diagram below.
Move method to the animal's Pace method.Then call this.Pace() in the Move method of the following classes:
Move method to the Animal's Swim method.Then, remove the code in the Move method and call this.Swim() in the Move method of the following classes:
Bird's Move method to the Animal's Fly method.Then, remove the code in the Move method and call this.Fly() in the Move method of the Bird class.
MoveHelper class in the Animals project as specified in the diagram below.
MoveBehaviors and put the MoveHelper class in it.Fly, Pace, and Swim methods to the method of the same name in the MoveHelper class.All references to "this" in the code should be changed to refer to the passed-in animal.
Fly, Pace, and Swim methods from the Animal class.Fly, Pace, and Swim methods are called, instead call the same method on the static MoveHelper class.Pass in the current animal when calling the method.
© 2026 Northcentral Technical College