static void Main(string[] args) { //Instantiate new shelter & new virtual pets VirtualPetShelter shelter = new VirtualPetShelter(); VirtualPet fidget = new VirtualPet("Fidget", "mini-moo", 67, 22, 54); VirtualPet tito = new VirtualPet("Tito ", "minotaur", 73, 45, 87); VirtualPet pinky = new VirtualPet("Pinky ", "unicorn", 79, 68, 94); // add pets to list shelter.AddPet(tito); shelter.AddPet(fidget); shelter.AddPet(pinky); List <VirtualPet> pets = shelter.GetPet(); //volunteer options Console.WriteLine("Hello! Welcome to the Virtual Pet Shelter. Type 1 for manager or 2 for volunteer"); int userSel = int.Parse(Console.ReadLine()); if (userSel == 2) { Console.WriteLine("Thanks for coming in to volunteer today"); Volunteer sign = new Volunteer(); Console.WriteLine(sign.CheckIn()); Console.WriteLine("Current Pet Status"); Console.WriteLine(" "); Console.WriteLine("Name |Hunger |Thirst |Boredom"); Console.WriteLine("____________________________________________"); // print out table with status foreach (VirtualPet pet in pets) { Console.WriteLine(pet.Name + " | " + pet.Hunger + " | " + pet.Water + " | " + pet.Play); Console.WriteLine(" "); } Console.WriteLine("Type yes if you would like to take care of the pets now"); string userAns = Console.ReadLine().ToLower(); while (userAns.Equals("yes")) { Console.WriteLine("What do you want to do?"); Console.WriteLine(""); Console.WriteLine("1 Feed the Pets"); Console.WriteLine("2 Water the Pets"); Console.WriteLine("3 Play with the Pets"); Console.WriteLine("4 Quit"); int userResp = int.Parse(Console.ReadLine()); switch (userResp) { case 1: Volunteer hungry = new Volunteer(); hungry.Feed(); Console.WriteLine("The pets have been fed."); break; case 2: Volunteer thirsty = new Volunteer(); thirsty.Thirst(); Console.WriteLine("The pets have been watered"); break; case 3: Volunteer fetch = new Volunteer(); fetch.Activity(); Console.WriteLine("Which pet would you like to play with?"); foreach (VirtualPet pet in pets) { Console.WriteLine(pet.Name); } string choice = Console.ReadLine().ToLower(); Console.WriteLine("You have played with " + choice); break; case 4: userAns = "test"; break; default: break; } } } //manager options if (userSel == 1) { // print out table with status Console.WriteLine("Current Pet Status"); Console.WriteLine(" "); Console.WriteLine("Name |Hunger |Thirst |Boredom"); Console.WriteLine("____________________________________________"); foreach (VirtualPet pet in pets) { Console.WriteLine(pet.Name + " | " + pet.Hunger + " | " + pet.Water + " | " + pet.Play); Console.WriteLine(" "); } Console.WriteLine("Type yes to do some work"); string userAns = Console.ReadLine().ToLower(); while (userAns.Equals("yes")) { Console.WriteLine(""); Console.WriteLine("1 Play with the Pets"); Console.WriteLine("2 Adopt out a Pet"); Console.WriteLine("3 Sign in"); Console.WriteLine("4 Quit"); int userResp = int.Parse(Console.ReadLine()); switch (userResp) { case 1: Console.WriteLine("Which pet would you like to play with?"); foreach (VirtualPet pet in pets) { Console.WriteLine(pet.Name); } string choice = Console.ReadLine().ToLower(); Console.WriteLine("You have played with " + choice); break; case 2: Console.WriteLine("Which pet is going to be adopted?"); foreach (VirtualPet pet in pets) { Console.WriteLine(pet.Name + " " + pet.Description); } string adoptee = Console.ReadLine().ToLower(); Manager newHome = new Manager(); Console.WriteLine(newHome.Adopt()); break; case 3: Manager swipe = new Manager(); Console.WriteLine(swipe.CheckIn()); break; case 4: userAns = "test"; break; } } Console.WriteLine("Quit"); } }
static void Main(string[] args) { //Local Variables string exitMainMenu = "no"; int userResponse; string exitExistingMenu = "no"; //instantiate objects from PetDetails PetDetails dog = new PetDetails("Dog", "Dog Food", "Nuno", 25, 5, 7); PetDetails cat = new PetDetails("Cat", "Cat Food", "Lucy", 22, 4, 9); PetDetails bird = new PetDetails("Bird", "Bird Food", "Tweety", 20, 3, 6); PetDetails turtle = new PetDetails("Turtle", "Turtle Food", "Maverick", 24, 6, 5); Manager Manager1 = new Manager(0, true); Volunteer Volunteer1 = new Volunteer(); Manager1.Dog = dog; Manager1.Cat = cat; Manager1.Bird = bird; Manager1.Turtle = turtle; Volunteer1.Dog = dog; Volunteer1.Cat = cat; Volunteer1.Bird = bird; Volunteer1.Turtle = turtle; //While loop for main menu Console.WriteLine("Welcome to the Seamus Hobans Pet Shop"); while (exitMainMenu.Equals("no")) { Console.WriteLine("Are you a manager or an volunteer?"); Console.WriteLine("Select 1 if your a manager"); Console.WriteLine("Select 2 if your an volunteer"); Console.WriteLine("Select 3 to exit"); userResponse = int.Parse(Console.ReadLine()); Console.Clear(); exitExistingMenu = "no"; if (userResponse == 1) { Manager manager = new Manager(5, false); Console.WriteLine("Thank you for being a great manager, do you want to:"); Console.WriteLine("Select 1 to feed the pets."); Console.WriteLine("Select 2 to play with the pets."); Console.WriteLine("Select 3 to pay the bills."); Console.WriteLine("Select 4 to view status of the pet."); Console.WriteLine("Select 5 to adaopt a pet."); userResponse = int.Parse(Console.ReadLine()); Console.Clear(); //Creating Logic switch statment for manager doin thier 4 tasks switch (userResponse) { case 1: manager.Feed(); break; case 2: Manager1.Play(); break; case 3: manager.PayBills(); break; case 4: Manager1.ViewStatus(); break; case 5: Manager1.AdoptAPet(); break; default: Console.WriteLine("Thanks you for managing Semus Hobans Pet Store"); break; } } else if (userResponse == 2) { Volunteer volunteer = new Volunteer(); Console.WriteLine("Thank you for being a most needed volunteer, do you want to:"); Console.WriteLine("Select 1 to feed the pets."); Console.WriteLine("Select 2 to play with the pets."); Console.WriteLine("Select 3 to give water to the pets."); Console.WriteLine("Select 4 to view status of the pets."); userResponse = int.Parse(Console.ReadLine()); Console.Clear(); //Creating logic for volunteer to do thier 3 tasks switch (userResponse) { case 1: volunteer.Feed(); break; case 2: Volunteer1.Play(); break; case 3: volunteer.Water(); break; case 4: Volunteer1.ViewStatus(); break; default: Console.WriteLine("Thankyou for volunteering at Seamus Hobans Pet Shop"); break; } } else if (userResponse == 3) { Console.WriteLine("Thank you for coming to Seamus Hobans Pet Shop."); exitMainMenu = "yes"; Console.Clear(); } else { Console.WriteLine("Please select a valid respone."); } } }
static void Main(string[] args) { VirtualPet Shoober = new VirtualPet("Shoober", "Chunky", 5, 5, 5); VirtualPet Nibbles = new VirtualPet("Nibbles", "Hyper", 5, 5, 5); VirtualPet Hubert = new VirtualPet("Hubert", "Skinny", 5, 5, 5); Manager Bob = new Manager(); Volunteer Becky = new Volunteer(); Console.WriteLine("Welcome to Krang's Cavern! What employee type are you?"); Console.WriteLine("1. Manager."); Console.WriteLine("2. Volunteer."); int input = int.Parse(Console.ReadLine()); if (input == 1) { Console.WriteLine("Thanks for working for Krang's Cavern! What would you like to do?"); Console.WriteLine("1. Scan ID."); Console.WriteLine("2. Clock in."); Console.WriteLine("3. Adopt out a pet."); Console.WriteLine("4. Inspire the volunteers."); int.Parse(Console.ReadLine()); if (input == 1) { Bob.ShowID(); } else if (input == 2) { Bob.ClockIn(); } else if (input == 3) { Bob.Adopt(); } else if (input == 4) { Bob.Inspire(); } else { return; } } else if (input == 2) { Console.WriteLine("Thanks for vulonteering at Krang's Cavern! What would you like to do?"); Console.WriteLine(" "); Console.WriteLine("This is the status of your pets."); Console.WriteLine("Name |Description |Hunger |Thirst |Boredom"); Console.WriteLine("-----|------------|-------|-------|-------"); Console.WriteLine(" "); Console.WriteLine(" "); Console.WriteLine(" "); Console.WriteLine("1. Show ID."); Console.WriteLine("2. Clock in."); Console.WriteLine("3. Feed pets."); int.Parse(Console.ReadLine()); if (input == 1) { Becky.ShowID(); } else if (input == 2) { Becky.ClockIn(); } else if (input == 3) { Becky.Feed(); } else { return; } } else { return; } }
static void Main(string[] args) { List <string> names = new List <string>(); List <int> hunger = new List <int>(); List <int> thirst = new List <int>(); List <int> energy = new List <int>(); Random generator = new Random(); int hungerLevel; int thirstLevel; int energyLevel; int userInput; int employeeType; int numberOfPets = 3; int hoursWorked; int characteristic; bool petAdoption = false; bool check = false; string petNames; Manager owner = new Manager(); Volunteer collegeKid = new Volunteer(); AnimalCharacteristics typeNDiet = new AnimalCharacteristics(); Console.WriteLine("Hello, before we get your title. Lets take a look at the shelter pets!\n"); Console.WriteLine("Looks like a full house! all 3 cages are full. Enter the pets names:"); for (int i = 0; i < numberOfPets; i++) { petNames = Console.ReadLine().ToLower(); names.Add(petNames); hungerLevel = generator.Next(0, 100); thirstLevel = generator.Next(0, 100); energyLevel = generator.Next(0, 100); hunger.Add(hungerLevel); thirst.Add(thirstLevel); energy.Add(energyLevel); } Pet petOne = new Pet(names[0], hunger[0], thirst[0], energy[0]); Pet petTwo = new Pet(names[1], hunger[1], thirst[1], energy[1]); Pet petThree = new Pet(names[2], hunger[2], thirst[2], energy[2]); Console.WriteLine("Thank you! What type of employee are you?"); Console.WriteLine("1. Volunteer\n2. Manager"); employeeType = int.Parse(Console.ReadLine()); do { Console.WriteLine("This is the status of your pets: "); Console.WriteLine(String.Format("|{0,8}|{1,8}|{2,8}|{3,8}|", "Name", "Hunger", "Thirst", "Energy")); petOne.PetStatus(); petTwo.PetStatus(); petThree.PetStatus(); if (employeeType == 1) { Console.WriteLine("\nWhat would you like to do next?"); Console.WriteLine("1. Feed ALL pets"); Console.WriteLine("2. Give ALL pets water"); Console.WriteLine("3. Play with one pet"); Console.WriteLine("4. Clock Out"); userInput = int.Parse(Console.ReadLine()); switch (userInput) { case 1: petOne.FeedAdjust(); petTwo.FeedAdjust(); petThree.FeedAdjust(); collegeKid.Feed(); break; case 2: petOne.WaterAdjust(); petTwo.WaterAdjust(); petThree.WaterAdjust(); collegeKid.Water(); break; case 3: Console.WriteLine("Which pet would you like to play with? "); for (int i = 0; i < numberOfPets; i++) { Console.WriteLine((i + 1) + ". " + names[i]); } userInput = int.Parse(Console.ReadLine()); switch (userInput) { case 1: petOne.PlayAdjust(); break; case 2: petTwo.PlayAdjust(); break; case 3: petThree.PlayAdjust(); break; } break; case 4: Console.WriteLine("How many hours have you worked?"); hoursWorked = int.Parse(Console.ReadLine()); check = collegeKid.ClockOut(hoursWorked); break; } } else if (employeeType == 2) { Console.WriteLine("\nWhat would you like to do next?"); Console.WriteLine("1. Adopt a pet"); Console.WriteLine("2. Give one pet water"); Console.WriteLine("3. Feed one pet"); Console.WriteLine("4. Check inventory"); Console.WriteLine("5. Clock Out"); userInput = int.Parse(Console.ReadLine()); switch (userInput) { case 1: Console.WriteLine("Which pet would you like to adopt? (Enter the number"); for (int i = 0; i < numberOfPets; i++) { Console.WriteLine((i + 1) + ". " + names[i]); } userInput = int.Parse(Console.ReadLine()); switch (userInput) { case 1: petAdoption = owner.Adopt(); petOne.Name = "ADOPTED!"; break; case 2: petAdoption = owner.Adopt(); petTwo.Name = "ADOPTED!"; break; case 3: petAdoption = owner.Adopt(); petThree.Name = "ADOPTED!"; break; } break; case 2: Console.WriteLine("Which pet would you like to give water? (Enter the number)"); for (int i = 0; i < numberOfPets; i++) { Console.WriteLine((i + 1) + ". " + names[i]); } userInput = int.Parse(Console.ReadLine()); switch (userInput) { case 1: petOne.WaterAdjust(); break; case 2: petTwo.WaterAdjust(); break; case 3: petThree.WaterAdjust(); break; } break; case 3: Console.WriteLine("Which pet would you like to feed? (Enter the number)"); for (int i = 0; i < numberOfPets; i++) { Console.WriteLine((i + 1) + ". " + names[i]); } userInput = int.Parse(Console.ReadLine()); switch (userInput) { case 1: petOne.FeedAdjust(); break; case 2: petTwo.FeedAdjust(); break; case 3: petThree.FeedAdjust(); break; } break; case 4: for (int i = 0; i < numberOfPets; i++) { characteristic = generator.Next(1, 5); Console.WriteLine(names[i] + " the " + typeNDiet.PetType(characteristic) + ". Eats a strict diet of " + typeNDiet.PetDiet(characteristic)); } break; case 5: Console.WriteLine("How many hours have you worked?"); hoursWorked = int.Parse(Console.ReadLine()); check = owner.ClockOut(hoursWorked); break; } } else { throw new ArgumentException("You did not enter a valid number"); } } while (check == false); }
static void Main(string[] args) { VirtualPetShelter vpshelter = new VirtualPetShelter(); Manager manager = new Manager(); Volunteer volunteer = new Volunteer(); vpshelter.Pets = new List <VirtualPet>(); vpshelter.Employees = new List <Employee>(); Dog jack = new Dog("Jack", "Dog", 83, 34, 23); Dog john = new Dog("John", "Dog", 69, 49, 02); Cat paul = new Cat("Paul", "Cat", 39, 18, 88); Cat glen = new Cat("Glen", "Cat", 59, 19, 37); vpshelter.SetPets(vpshelter.Pets, jack); vpshelter.SetPets(vpshelter.Pets, john); vpshelter.SetPets(vpshelter.Pets, paul); vpshelter.SetPets(vpshelter.Pets, glen); Manager courtney = new Manager("Courtney"); Manager pete = new Manager("Pete"); Volunteer heidi = new Volunteer("Heidi"); Volunteer mark = new Volunteer("Mark"); vpshelter.SetEmployees(vpshelter.Employees, courtney); vpshelter.SetEmployees(vpshelter.Employees, pete); vpshelter.SetEmployees(vpshelter.Employees, heidi); vpshelter.SetEmployees(vpshelter.Employees, mark); Console.WriteLine("Would you like to play Virtual Pet Shelter?"); Console.WriteLine("1. Yes"); Console.WriteLine("2. No"); Console.WriteLine(); Console.Write("> "); string userResp = Console.ReadLine(); Console.Clear(); while (userResp == "1") // Setting a Game Loop { Console.WriteLine("Welcome to Courtney's Virtual Pet Shelter. What employee type are you?"); Console.WriteLine("1. Manager"); Console.WriteLine("2. Volunteer"); Console.WriteLine("3. Quit"); Console.WriteLine(); Console.Write("> "); string employeeResp = Console.ReadLine(); Console.WriteLine("\nThank you for working at Courtney's Virtual Pet Shelter!\n"); if (employeeResp == "3") { Console.Clear(); userResp = "0"; } while (employeeResp == "1") // Manager Menu { Console.WriteLine("Which manager are you?"); Console.WriteLine("1. Courtney"); Console.WriteLine("2. Pete"); Console.WriteLine("3. Switch employee type"); Console.WriteLine("4. Quit"); Console.WriteLine(); Console.Write("> "); string userMgr = Console.ReadLine(); if (userMgr == "3") { Console.Clear(); employeeResp = "0"; } if (userMgr == "4") { Console.Clear(); employeeResp = "0"; userResp = "2"; } while (userMgr == "1" || userMgr == "2") { Console.WriteLine("\nWhat would you like to do?"); Console.WriteLine("1. Adopt a pet"); Console.WriteLine("2. Feed the pets"); Console.WriteLine("3. Play with a pet"); Console.WriteLine("4. View status of your pets"); Console.WriteLine("5. Switch user"); Console.WriteLine("6. Switch employee type"); Console.WriteLine("7. Quit"); Console.WriteLine(); Console.Write("> "); string mgrResp = Console.ReadLine(); switch (mgrResp) { case "1": Console.Clear(); Console.WriteLine("Ok, you'd like to adopt a pet. Please choose one:\n"); for (int i = 0; i < vpshelter.Pets.Count; i++) { Console.WriteLine("For [" + vpshelter.Pets[i].Name + "] type " + i); } Console.WriteLine("\nWhich pet would you like to adopt?\n"); Console.Write("> "); string adoptResp = Console.ReadLine().ToLower(); switch (adoptResp) { case "0": Console.Clear(); Console.WriteLine(manager.Adopt(vpshelter.Pets, vpshelter.Pets[0]) + "\n"); break; case "1": Console.Clear(); Console.WriteLine(manager.Adopt(vpshelter.Pets, vpshelter.Pets[1]) + "\n"); break; case "2": Console.Clear(); Console.WriteLine(manager.Adopt(vpshelter.Pets, vpshelter.Pets[2]) + "\n"); break; case "3": Console.Clear(); Console.WriteLine(manager.Adopt(vpshelter.Pets, vpshelter.Pets[3]) + "\n"); break; default: break; } break; case "2": Console.Clear(); Console.WriteLine("Ok, you'd like to feed a pet. Please choose one:\n"); for (int i = 0; i < vpshelter.Pets.Count; i++) { Console.WriteLine("For [" + vpshelter.Pets[i].Name + "] type " + i); } Console.WriteLine("For [All Pets] type all\n"); Console.WriteLine("Which pet would you like to feed?\n"); Console.Write("> "); string feedResp = Console.ReadLine().ToLower(); Console.Clear(); switch (feedResp) { case "0": Console.WriteLine(manager.Feed(vpshelter.Pets[0])); Console.WriteLine("Hunger: " + vpshelter.Pets[0].Hunger + "\n"); break; case "1": Console.WriteLine(manager.Feed(vpshelter.Pets[1])); Console.WriteLine("Hunger: " + vpshelter.Pets[1].Hunger + "\n"); break; case "2": Console.WriteLine(manager.Feed(vpshelter.Pets[2])); Console.WriteLine("Hunger: " + vpshelter.Pets[2].Hunger + "\n"); break; case "3": Console.WriteLine(manager.Feed(vpshelter.Pets[3])); Console.WriteLine("Hunger: " + vpshelter.Pets[3].Hunger + "\n"); break; case "all": for (int i = 0; i < vpshelter.Pets.Count; i++) { Console.WriteLine(manager.Feed(vpshelter.Pets[i])); Console.WriteLine("Hunger: " + vpshelter.Pets[i].Hunger + "\n"); } break; default: break; } break; case "3": Console.Clear(); Console.WriteLine("Ok, you'd like to play with a pet. Please choose one:\n"); for (int i = 0; i < vpshelter.Pets.Count; i++) { Console.WriteLine("For [" + vpshelter.Pets[i].Name + "] type " + i); } Console.WriteLine("For [All Pets] type all\n"); Console.WriteLine("Which pet would you like to play with?\n"); Console.Write("> "); string playResp = Console.ReadLine().ToLower(); Console.Clear(); switch (playResp) { case "0": Console.WriteLine(manager.Play(vpshelter.Pets[0])); Console.WriteLine("Boredom: " + vpshelter.Pets[0].Boredom + "\n"); break; case "1": Console.WriteLine(manager.Play(vpshelter.Pets[1])); Console.WriteLine("Boredom: " + vpshelter.Pets[1].Boredom + "\n"); break; case "2": Console.WriteLine(manager.Play(vpshelter.Pets[2])); Console.WriteLine("Boredom: " + vpshelter.Pets[2].Boredom + "\n"); break; case "3": Console.WriteLine(manager.Play(vpshelter.Pets[3])); Console.WriteLine("Boredom: " + vpshelter.Pets[3].Boredom + "\n"); break; case "all": for (int i = 0; i < vpshelter.Pets.Count; i++) { Console.WriteLine(manager.Play(vpshelter.Pets[i])); Console.WriteLine("Boredom: " + vpshelter.Pets[i].Boredom + "\n"); } break; default: break; } break; case "4": Console.Clear(); Console.WriteLine("This is the status of your pets:\n"); Console.WriteLine("Name Desc. Hunger Thirst Boredom"); Console.WriteLine("------- ------- ------- ------- -------"); for (int i = 0; i < vpshelter.Pets.Count; i++) { Console.WriteLine("{0} {1} {2} {3} {4}", vpshelter.Pets[i].Name, vpshelter.Pets[i].Description, vpshelter.Pets[i].Hunger, vpshelter.Pets[i].Thirst, vpshelter.Pets[i].Boredom); } Console.WriteLine(); break; case "5": Console.Clear(); userMgr = "0"; break; case "6": Console.Clear(); userMgr = "0"; employeeResp = "0"; break; case "7": Console.Clear(); userMgr = "0"; employeeResp = "0"; userResp = "2"; break; default: break; } } } while (employeeResp == "2") // Volunteer Menu { Console.WriteLine("Which volunteer are you?"); Console.WriteLine("1. Heidi"); Console.WriteLine("2. Mark"); Console.WriteLine("3. Switch employee type"); Console.WriteLine("4. Quit"); Console.WriteLine(); Console.Write("> "); string userVol = Console.ReadLine(); if (userVol == "3") { Console.Clear(); employeeResp = "0"; } if (userVol == "4") { Console.Clear(); employeeResp = "0"; userResp = "2"; } while (userVol == "1" || userVol == "2") { Console.WriteLine("\nWhat would you like to do?"); Console.WriteLine("1. Feed the pets"); Console.WriteLine("2. Give water to the pets"); Console.WriteLine("3. Play with a pet"); Console.WriteLine("4. View status of your pets"); Console.WriteLine("5. Switch user"); Console.WriteLine("6. Switch employee type"); Console.WriteLine("7. Quit"); Console.WriteLine(); Console.Write("> "); string volResp = Console.ReadLine(); switch (volResp) { case "1": // Feed the pets Console.Clear(); Console.WriteLine("Ok, you'd like to feed a pet. Please choose one:\n"); for (int i = 0; i < vpshelter.Pets.Count; i++) { Console.WriteLine("For [" + vpshelter.Pets[i].Name + "] type " + i); } Console.WriteLine("For [All Pets] type all\n"); Console.WriteLine("Which pet would you like to feed?\n"); Console.Write("> "); string feedResp = Console.ReadLine().ToLower(); Console.Clear(); switch (feedResp) { case "0": Console.WriteLine(volunteer.Feed(vpshelter.Pets[0])); Console.WriteLine("Hunger: " + vpshelter.Pets[0].Hunger + "\n"); break; case "1": Console.WriteLine(volunteer.Feed(vpshelter.Pets[1])); Console.WriteLine("Hunger: " + vpshelter.Pets[1].Hunger + "\n"); break; case "2": Console.WriteLine(volunteer.Feed(vpshelter.Pets[2])); Console.WriteLine("Hunger: " + vpshelter.Pets[2].Hunger + "\n"); break; case "3": Console.WriteLine(volunteer.Feed(vpshelter.Pets[3])); Console.WriteLine("Hunger: " + vpshelter.Pets[3].Hunger + "\n"); break; case "all": for (int i = 0; i < vpshelter.Pets.Count; i++) { Console.WriteLine(volunteer.Feed(vpshelter.Pets[i])); Console.WriteLine("Hunger: " + vpshelter.Pets[i].Hunger + "\n"); } break; default: break; } break; case "2": // Give water to the pets Console.Clear(); Console.WriteLine("Ok, you'd like to give water to a pet. Please choose one:\n"); for (int i = 0; i < vpshelter.Pets.Count; i++) { Console.WriteLine("For [" + vpshelter.Pets[i].Name + "] type " + i); } Console.WriteLine("For [All Pets] type all\n"); Console.WriteLine("Which pet would you like to give water?\n"); Console.Write("> "); string waterResp = Console.ReadLine().ToLower(); Console.Clear(); switch (waterResp) { case "0": Console.WriteLine(volunteer.GiveWater(vpshelter.Pets[0])); Console.WriteLine("Thirst: " + vpshelter.Pets[0].Thirst + "\n"); break; case "1": Console.WriteLine(volunteer.GiveWater(vpshelter.Pets[1])); Console.WriteLine("Thirst: " + vpshelter.Pets[1].Thirst + "\n"); break; case "2": Console.WriteLine(volunteer.GiveWater(vpshelter.Pets[2])); Console.WriteLine("Thirst: " + vpshelter.Pets[2].Thirst + "\n"); break; case "3": Console.WriteLine(volunteer.GiveWater(vpshelter.Pets[3])); Console.WriteLine("Thirst: " + vpshelter.Pets[3].Thirst + "\n"); break; case "all": for (int i = 0; i < vpshelter.Pets.Count; i++) { Console.WriteLine(volunteer.GiveWater(vpshelter.Pets[i])); Console.WriteLine("Thirst: " + vpshelter.Pets[i].Thirst + "\n"); } break; default: break; } break; case "3": // Play with a pet Console.Clear(); Console.WriteLine("Ok, you'd like to play with a pet. Please choose one:\n"); for (int i = 0; i < vpshelter.Pets.Count; i++) { Console.WriteLine("For [" + vpshelter.Pets[i].Name + "] type " + i); } Console.WriteLine("For [All Pets] type all\n"); Console.WriteLine("Which pet would you like to play with?\n"); Console.Write("> "); string playResp = Console.ReadLine().ToLower(); Console.Clear(); switch (playResp) { case "0": Console.WriteLine(volunteer.Play(vpshelter.Pets[0])); Console.WriteLine("Boredom: " + vpshelter.Pets[0].Boredom + "\n"); break; case "1": Console.WriteLine(volunteer.Play(vpshelter.Pets[1])); Console.WriteLine("Boredom: " + vpshelter.Pets[1].Boredom + "\n"); break; case "2": Console.WriteLine(volunteer.Play(vpshelter.Pets[2])); Console.WriteLine("Boredom: " + vpshelter.Pets[2].Boredom + "\n"); break; case "3": Console.WriteLine(volunteer.Play(vpshelter.Pets[3])); Console.WriteLine("Boredom: " + vpshelter.Pets[3].Boredom + "\n"); break; case "all": for (int i = 0; i < vpshelter.Pets.Count; i++) { Console.WriteLine(volunteer.Play(vpshelter.Pets[i])); Console.WriteLine("Boredom: " + vpshelter.Pets[i].Boredom + "\n"); } break; default: break; } break; case "4": // View the status of your pets Console.Clear(); Console.WriteLine("This is the status of your pets:\n"); Console.WriteLine("Name Desc. Hunger Thirst Boredom"); Console.WriteLine("------- ------- ------- ------- -------"); for (int i = 0; i < vpshelter.Pets.Count; i++) { Console.WriteLine("{0} {1} {2} {3} {4}", vpshelter.Pets[i].Name, vpshelter.Pets[i].Description, vpshelter.Pets[i].Hunger, vpshelter.Pets[i].Thirst, vpshelter.Pets[i].Boredom); } Console.WriteLine(); break; case "5": Console.Clear(); userVol = "0"; break; case "6": Console.Clear(); userVol = "0"; employeeResp = "0"; break; case "7": // Quit Console.Clear(); userVol = "0"; employeeResp = "0"; userResp = "2"; break; default: break; } } } } Console.WriteLine("Thanks for playing!"); }