-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmenuFunctions.cs
More file actions
27 lines (25 loc) · 905 Bytes
/
menuFunctions.cs
File metadata and controls
27 lines (25 loc) · 905 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
namespace petsData
{
public class menuFunctions
{
public static void listAnimals(List<Animal> ourAnimals, int maxPets)
{
foreach (Animal animal in ourAnimals)
{
// Access animal properties directly
Console.WriteLine($"ID #: {animal.ID}");
Console.WriteLine($"Species: {animal.Species}");
Console.WriteLine($"Age: {animal.Age}");
Console.WriteLine($"Nickname: {animal.Nickname}");
Console.WriteLine($"Physical description: {animal.Appearance}");
Console.WriteLine($"Personality: {animal.Personality}");
Console.WriteLine();
}
}
public static void ExitApp()
{
Console.WriteLine("You are now exiting the program");
Environment.Exit(0);
}
}
}