- The console show command finds an animal by name and displays its information.
Program.cs, add a new case to the existing switch statement to process the show command.
"show" case, add a new switch statement that switches on the second item in the commandWords array.IndexOutOfRangeException and display an appropriate message to the user about needing additional parameters."animal"."animal" case, call the FindAnimal method, passing in the third item in the commandWords array.Otherwise, write a message to the console telling the user that the animal could not be found.
The following animal was found: [AnimalName].
'show animal Dolly'.FindAnimal.It capitalizes the first letter in the string and adds the rest of the string to the capitalized letter.
string animalName = char.ToUpper(commandWords[2][0]) + commandWords[2].Substring(1);animalName variable into the FindAnimal method call.IndexOutOfRangeException and print out a message telling the user they need to enter a third parameter of the name of an animal.SHOW ANIMAL [animal name]: Displays information for specified animal.'show'. A message should appear instructing the user to enter additional parameters,'show animal'. A message should appear instructing the user to enter additional parameters.'show animal Dolly'."show" case, add a case for "guest".
"animal" case).FindGuest method, passing in the capitalized guest name.Otherwise, write a message to the console telling the user that the guest could not be found.
show guest GregPeople.Guest.Guest class.
IndexOutOfRangeException and print out a message telling the user they need to enter a third parameter of the name of a guest.ToString method in the Guest class. Use the string.Format method to make the output look like thisGreg: 11 [$12.00]SHOW GUEST [guest name]: Displays information for specified guest.show guest Greg'show guest'. A message should appear instructing the user to enter an additional parameter.Program.cs called InitialUpper. It takes a string as a parameter and returns a string.
Change commandWords[2] to the name of the string parameter.
"show" command with calls to the InitialUpper method.Pass in commandWords[2].
show animal Dollyshow guest GregSoldItem to the BoothItems project and update the inheritance hierarchy of booth items as specified in the diagram below.
Wallet and VendingMachine contain money collectors rather than inheriting from MoneyCollector.

MoneyCollector class so it can be instantiated.moneyPocket field to a new MoneyCollector in the wallet constructor per the object diagram below.
MoneyBalance property's getter should refer to the money pocket's MoneyBalance property, as shown in the code belowpublic decimal MoneyBalance
{
get
{
return this.moneyPocket.MoneyBalance;
}
}AddMoney method should call the moneyPocket's AddMoney method, passing the parameter through.RemoveMoney method should call the moneyPocket's RemoveMoney method, passing the parameter through.Return the result of calling the method.
VendingMachine
moneyBox field to a new MoneyCollector in the vending machine constructor.MoneyBalance property and the AddMoney and RemoveMoney methods should call the appropriate property or method on the moneyBox.Wallet class, set a breakpoint on the line that calls RemoveMoneyVendingMachine class' AddMoney method, set a breakpoint on the line that calls AddMoney.MoneyCollector class.MoneyCollector class.GivingBooth and MoneyCollectingBooth classes to the People project and make other changes as specified in the diagram below.
ticketPrice fields, the TicketPrice and WaterBottlePrice properties, and SellTicket and SellWaterBottle methods to the MoneyCollectingBooth.GiveFreeMap and GiveFreeCouponBook methods to the GivingBooth.MoneyCollectingBooth's MoneyBalance property, AddMoney method, and RemoveMoney method should all call the appropriate property or method on the money box.MoneyCollectingBooth constructor.Move the creation of maps and coupon books to the GivingBooth constructor. The list of items should still be instantiated in the Booth constructor.
MoneyCollectingBooth's constructor, instantiate its moneyBox field.ticketBooth to be a MoneyCollectingBooth.Add a field called informationBooth of type GivingBooth. Instantiate it in the constructor.
Booth, GivingBooth and MoneyCollectingBooth classes in it.Guest class as specified in the diagram below.
GiveFreeMap and GiveFreeCouponBook from VisitTicketBooth to VisitInformationBooth.VisitInformationBooth method from the zoo's SellTicket method.Guest class, create a new list of Items and instantiate the list in the constructor.
VisitTicketBooth method add the water bottle to the bag.VisitInformatonBooth method add the coupon book and map to the bag.SellTicket method on the call to VisitTicketBooth. Run the WPF application.SellTicket and SellWaterBottle methods should go to the MoneyCollectingBooth classB. stepping into the GiveFreeMap and GiveFreeCouponBook methods should go to the GivingBooth classC. stepping into the Attendant and Items properties should go to the Booth classD. stepping into the MoneyCollectingBooth's AddMoney and RemoveMoney methods should also step into the methods of the same name on the MoneyCollector classMainWindow.xaml called animalListBox, as shown in the wireframe below.
Zoo class called Animals.It returns the animals list as an IEnumerable<Animal>.

PopulateAnimalListBox to MainWindow.xaml.cs. It takes no parameters.ItemsSource of the animals list box to null.Then set the ItemsSource to the zoo's Animals property.
PopulateAnimalListBox method inside the window_Loaded event.PopulateAnimalListBox method inside the feedAnimalButton_Click event after feeding an animal.

PopulateGuestListBox method inside the admitGuestButton_Click after adding the guest to the zoo.PopulateGuestListBox method inside the feedAnimalButton_Click after feeding an animal.Guest button.Guest is added to the guest list box.
Ensure that the ostrich's weight and the Greg's money balance are automatically updated.
'Show Animal' and 'Show Guest"© 2026 Northcentral Technical College