- The animal hierarchy supports the additional animal types specified in the assignment.

BabyWeightPercentage property in each animal's constructor.Move method to reflect this. A baby ostrich weighs 30% of its mother's weight.Move method to reflect this.Move method to reflect this.Move method to reflect this. When eating food, fish gain weight by 5%.Move method to reflect this.MainWindow.xaml.cs, add at least one animal of each type to the zoo. Examplethis.comoZoo.AddAnimal(new Chimpanzee("Bobo", 3, 50.0));admitGuestButton_Click, put the call to add a guest to the zoo inside a try statement, as shown in the code belowtry
{
// unsafe code goes here
}Inside the catch block, call MessageBox.Show. Pass in a message telling the user that they must have a ticket in order to enter the zoo.
catch
{
// code here
}A message box with your user-friendly message about running out of tickets should pop up. Click OK.

AddGuest method on the Zoo class, add an if-statement around the code currently in the method.isRedeemed field on the ticket is false.admitGuestButton_Click. The if-statement will take care of validating the ticket.Guest button four times.A message shouldn't be shown. Instead, you should be able to keep clicking without an exception being thrown.
MoneyCollectors class library as specified in the class diagram below.
MoneyCollector class as specified in the class diagram below.
Wallet class's AddMoney and RemoveMoney methods into the equivalent methods in the MoneyCollector.Booth class inherit from the MoneyCollector class as specified in the class diagram below.
Booth's moneyBalance field and AddMoney method.It might be necessary in the SellTicket and SellWaterBottle methods to change a reference to the moneyBalance field to a call to the AddMoney method.
Wallet class inherit from the MoneyCollector class and remove the wallet's now redundant field, property and methods, as specified in the diagram below.
MoneyCollectors namespace as necessary.VendingMachine class inherit from the MoneyCollector class and remove the vending machine's now redundant field and method, as specified in the diagram below.
MainWindow.xaml named feedAnimalButton and add a click event for it.
MoneyCollector class at the beginning of the AddMoney method.MoneyCollector class at the beginning of the RemoveMoney method.Ensure that the breakpoint is hit and that the call came from the ticketBooth object calling AddMoney in the Zoo constructor by using the Call Stack.

The Call Stack will change. Check to ensure that the new call came from the AnimalSnackMachine calling AddMoney.
Guest constructor.Check to ensure that the new call came from the wallet object in the VisitTicketBooth method in the Guest class.
Check to ensure that the new call came from the ticketBooth object in the SellTicket method in the Booth class.
RemoveMoney from the FeedAnimal method in the Guest class.Booth items share common members through Item and redundant item-handling code is removed.BoothItems project, as specified in the diagram below.
FindItem, as specified in the diagram above.SellTicket, SellWaterBottle, GiveFreeMap and GiveFreeCouponBook methods, call the employee's FindItem method, passing in the list of items and the type of item to search for.VisitTicketBooth method. Run the WPF application.SellTicket method should return a ticketSellWaterBottle method should return a water bottleGiveFreeMap method should return a mapGiveFreeCouponBook method should return a coupon bookMove method of the following ClassesMoneyCollectors projectGuest button to admit more Guests than tickets available does not throw an ExceptionfeedAnimalButton_Click© 2026 Northcentral Technical College