Genderand wallet color use the specified enumeration values.
Gender and wallet color use the specified enumeration values.Gender to the Reproducers project and make changes to the Guest class as specified in the diagram below.

Enum values are accessed using class notation, as in the code below:
Gender.FemaleGender field to the Animal class and a gender parameter in the Animal class and all of the Animal class's descendant classes.Pass an appropriate gender enum value in to the animal constructor wherever it is called.

Gender instead of type string.Pass an appropriate gender enum value in to the restroom constructor wherever it is called.
WalletColor to the People project and make changes to the Wallet and Guest classes as specified in the diagram below.
IMoneyCollector.IMoneyCollector interface in the MoneyCollectors project as seen in the class diagram below.
MoneyCollector class implement the IMoneyCollector interface.
MoneyCollectors project named Interfaces and put the IMoneyCollector interface in it.Functionality for the Wallet, VendingMachine, and MoneyCollectingBooth classes should remain the same.
IMoneyCollector field backed by a MoneyPocket instance.
MoneyPocket class in the MoneyCollectors project as specified in the diagram below.
MoneyPocket class inherit from MoneyCollector class.Wallet's moneyPocket field from type MoneyCollector to IMoneyCollector.
MoneyPocket as per the object diagram below.
MoneyPocket class in the RemoveMoney method, have the money pocket unfold before calling base to remove money, then fold the pocket after removal.Wallet constructor, after the line that instantiates the moneyPocket, type moneyPocket. to bring up IntelliSense.Ensure that you cannot call Fold or Unfold.
VisitTicketBooth method on a call to the wallet's RemoveMoney method.Run the WPF application.
In the Autos window, note that the moneyPocket field has a Type of
MoneyCollectors.IMoneyCollector {MoneyCollectors.MoneyPocket}. This means the object is of type IMoneyCollector, but has been instantiated as a MoneyPocket type.
Ensure that the debugger steps into the MoneyPocket class. Note that the Type is now MoneyCollectors.MoneyPocket. The object has "morphed" into a different thing so it can gain the extra functionality.
RemoveMoney.Ensure the debugger steps into the MoneyCollector class. Note that the Type is now
**MoneyCollectors.MoneyCollector {MoneyCollectors.MoneyPocket}. The object has again "morphed" into a different thing to gain functionality, but is still a MoneyPocket.
MoneyBox instances.MoneyBox in the MoneyCollectors project as specified in the diagram below.
MoneyBox inherit from the MoneyCollector class.VendingMachine class's MoneyCollector.VendingMachine's moneyBox field from type MoneyCollector to IMoneyCollector.VendingMachine's constructor as a MoneyBox.
MoneyCollectingBooth class's MoneyCollector.MoneyCollectingBooth's moneyBox field from type MoneyCollector to IMoneyCollector.
moneyBox in the MoneyCollectingBooth as a MoneyBox.VendingMachine's AddMoney method within the BuyFood method.AddMoney method takes you to the VendingMachine class then the MoneyCollector class.MoneyCollector class as abstract.ConsoleHelper and ConsoleUtil classes to the ZooConsole project, as specified in the diagram below.
InitialUpper method from Program.cs to the ConsoleUtil class."temp" command to the SetTemperature method.Call the SetTemperature method from the "temp" case in Program.cs.
ConsoleHelper.SetTemperature(zoo, commandWords[1]);"show" command. The ending method sequence is shown below.
"show animal" command to the ShowAnimal method."show guest" command to the ShowGuest method."show" command to the ProcessShowCommand method and switch on the type parameter.Call the InitialUpper method on the passed in name before the switch statement. Call the ShowAnimal and ShowGuest methods from the appropriate case.
ProcessShowCommand method from the "show" command in Program.cs.The application should not crash and you should get a message written to the console about the error.
Program.cs, surround the while loop in a try/catch and catch an Exception with a parameter and inside the catch, write the exception Message to the Console.AnimalWindow.
AnimalWindow.xaml file to the ZooScenario project.Width to 300.AnimalWindow.xaml.cs class definition.[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.StyleCop.CSharp.NamingRules", "SA1300:ElementMustBeginWithUpperCaseLetter", Justification = "Event handlers may begin with lower-case letters.")]InitializeComponent.MainWindow beneath the animal list box. Name it addAnimalButton and add a click event.AnimalWindow. Pass in the animal created in the previous step.ShowDialog method on the newly instantiated AnimalWindow.DialogResult is equal to true.If so, add the animal to the zoo and repopulate the animal list box. If not, do nothing.
AnimalWindow constructor on the line that sets the animal field. Run the WPF application.AnimalWindow should appear after the call to ShowDialog runs.You should not be able to click back to the MainWindow while the AnimalWindow is open.
AnimalWindow.DialogResult should be false.**Problem: We have a new window that shows up but the user has nothing to edit.
**Solution: You will add a user interface to the window that allows the user to input/change information for an animal.

<Grid>
</Grid>
tags in the AnimalWindow.xaml, add an additional set of Grid tags.This Grid-ception allows us to put different elements in different containers.
<Grid.ColumnDefinitions> <ColumnDefinition /> </Grid.ColumnDefinitions>
ColumnDefinition tags.The Width property of the first is 100. The Width property of the second is 4. The Width property of the third is * (asterisk).
Grid.ColumnDefinitions, add row definitions as shown in the code below<Grid.RowDefinitions> <RowDefinition /> </Grid.RowDefinitions>
RowDefinition tags.The Height of the first is 4, and the Height of the second is 30. The heights then alternate between 4 and 30 for the rest of the rows.
AnimalWindow.Name label in the first column and second row.Align it to the right, as shown in the code below:
<Label Grid.Row="1" Grid.Column="0" Content="Name" HorizontalAlignment="Right" />
TextBox to the XAML with the following valuesGrid.Row: 1Grid.Column: 2Name: nameTextBoxAll the controls should go in the rows with a height of 30.


Name: okButtonContent: OKWidth: 90VerticalAlignment: BottomHorizontalAlignment: RightName: cancelButtonContent: CancelWidth: 90VerticalAlignment: BottomHorizontalAlignment: Rightwindow_Loaded event to the animal window.Age property to the Animal class with a getter and setter.window_Loaded event, set the Text property of the Name, Age and Weight to the associated property of the animal (e.g. the text of the name text box is set to the value of the animal's Name property).this.ageTextBox.Text = this.animal.Age.ToString();ComboBox and have the Gender of the animal be what shows up.this.genderComboBox.ItemsSource = Enum.GetValues(typeof(Gender));
this.genderComboBox.SelectedItem = this.animal.Gender;pregnancyStatusLabel's Content property to "Yes" if the animal is pregnant and "No" if it is not.'Add animal' button.
Cancel button. Nothing should happen.AnimalWindow.xaml, select the OK button. In the Properties window, check the IsDefault check box.AnimalWindow.xaml, select the Cancel button. In the Properties window, check the IsCancel check box.DialogResult to true.MoneyCollector class implements the IMoneyCollector InterfaceMoneyPocket class inherits from the MoneyCollector classMoneyBox class inherits from the MoneyCollector class© 2026 Northcentral Technical College