- Gender and wallet color use the specified enumeration values.


Enum values are accessed using class notation, as in the code below:
Gender.FemalePass an appropriate gender enum value in to the animal constructor wherever it is called.

Pass an appropriate gender enum value in to the restroom constructor wherever it is called.



Functionality for the Wallet, VendingMachine, and MoneyCollectingBooth classes should remain the same.




Ensure that you cannot call Fold or Unfold.
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.
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.




Call the SetTemperature method from the "temp" case in Program.cs.
ConsoleHelper.SetTemperature(zoo, commandWords[1]);
Call the InitialUpper method on the passed in name before the switch statement. Call the ShowAnimal and ShowGuest methods from the appropriate case.
The application should not crash and you should get a message written to the console about the error.

[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.StyleCop.CSharp.NamingRules", "SA1300:ElementMustBeginWithUpperCaseLetter", Justification = "Event handlers may begin with lower-case letters.")]If so, add the animal to the zoo and repopulate the animal list box. If not, do nothing.
You should not be able to click back to the MainWindow while the AnimalWindow is open.
**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>
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.RowDefinitions> <RowDefinition /> </Grid.RowDefinitions>
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.
Align it to the right, as shown in the code below:
<Label Grid.Row="1" Grid.Column="0" Content="Name" HorizontalAlignment="Right" />
All the controls should go in the rows with a height of 30.


this.ageTextBox.Text = this.animal.Age.ToString();this.genderComboBox.ItemsSource = Enum.GetValues(typeof(Gender));
this.genderComboBox.SelectedItem = this.animal.Gender;
© 2026 Northcentral Technical College