public static void CreateMenu(Pet[] myPets) { int menuChoice = GetMenuChoice(); if (menuChoice == 5) { Console.WriteLine("Good Bye!!!"); } while (menuChoice != 5) { if (menuChoice == 1) { Console.WriteLine("You chose to print the data on the pets."); Pet.PrintPets(myPets); } else if (menuChoice == 2) { Console.WriteLine("You chose to view the average weight of the pets."); Report.AverageWeight(myPets); } else if (menuChoice == 3) { Console.WriteLine("You chose to view the pairs of pets with combined weight over 50 pounds."); Report.CombinedWeightOver50(myPets); } else { Console.WriteLine("You chose to view the average weight of the pets by their type."); // Call the method to display the average weight by type Pet.SortByType(myPets); //Pet.PrintPets(myPets); Report.AvgWeightByType(myPets); } menuChoice = GetMenuChoice(); if (menuChoice == 5) { Console.WriteLine("Good Bye!!!"); } } }