static void Main(string[] args) { Console.BackgroundColor = ConsoleColor.Blue; Console.Clear(); Console.ForegroundColor = ConsoleColor.White; Car.numberAvailable = 0; Car.valueOfCurrentStock = 0; List <Car> carlot = new List <Car>(); Car car1 = new Car("Ford", "Mustang", "1111", 2000, 30000, false, carlot); Car car2 = new Car("BMW", "Continental", "1222", 2005, 45000, false, carlot); Car car3 = new Car("Jaguar", "r-models", "1333", 2009, 60000, false, carlot); string selection = ""; do { switch (selection) { case "a": Console.Clear(); Car car4 = new Car(false, carlot); Console.WriteLine("Press any key to continue..."); selection = Console.ReadLine(); break; case "d": Console.Clear(); Car.displayCars(carlot); Console.WriteLine("Hit Tab to continue..."); selection = Console.ReadLine(); break; case "t": Console.Clear(); Car.totalValue(carlot); Console.WriteLine("Hit Tab to continue..."); selection = Console.ReadLine(); break; case "s": Console.Clear(); Console.WriteLine("What make do you wish to sell"); String make = Console.ReadLine(); Car.sellCar(carlot, make); selection = Console.ReadLine(); break; default: Console.Clear(); Console.WriteLine("Would you like to enter a car press <a>"); Console.WriteLine("Would you like view carlot press <d>"); Console.WriteLine("Would you like to view the total value <t>"); Console.WriteLine("To sell a car select <s>"); Console.WriteLine("Press <e> to exit"); selection = Console.ReadLine(); continue; } } while (selection != "e"); }