static void Main(string[] args) { var xmas = new Christmas(); var xmasDay = Christmas.Day.Thursday; //Done -- set Santa's name to Kris Kringle xmas.Santa = ("Kris Kringle"); //Done -- Insert 3 presents you would like for xmas. They must be strings xmas.Presents = new string[3] { "Mug", "DVD", "Computer" }; //Done -- Set the TreeHeight to 10 xmas.TreeHeight = 10; Console.WriteLine($"This year christmas falls on {xmasDay} \n"); Console.WriteLine($"Our tree will be {xmas.TreeHeight} feet high \n"); Console.WriteLine("Here are the presents we would like:"); foreach (var present in xmas.Presents) { Console.WriteLine($" {present}"); } Console.WriteLine($"\n We like to call Santa, {xmas.Santa}"); }
static void Main(string[] args) { var xmas = new Christmas(); var xmasDay = Christmas.Day.Thursday; //TODO set Santa's name to Kris Kringle xmas.Santa = "Kris Kringle"; //TODO Insert 3 presents you would like for xmas. They must be strings xmas.Presents = new string[3] { "New Saw", "Paint Sprayer", "5 Gallons of Paint" }; //TODO Set the TreeHeight to 10 xmas.TreeHeight = 10; Console.WriteLine($"This year christmas falls on {xmasDay} \n"); Console.WriteLine($"Our tree will be {xmas.TreeHeight} feet high \n"); Console.WriteLine("Here are the presents we would like:"); foreach (var present in xmas.Presents) { Console.WriteLine($" {present}"); } Console.WriteLine($"\n We like to call Santa, {xmas.Santa}"); }
static void Main(string[] args) { var xmas = new Christmas(); var xmasDay = Christmas.Day.Thrusday; //DONE set Santa's name to Kris Kringle xmas.Santa = "Kirs Kringle"; //DONE Insert 3 presents you would like for xmas. They must be strings xmas.Presents = new string[3] { "Car", "New House", "New Bass Guitar" }; //DONE Set the TreeHeight to 10 xmas.TreeHeight = 10; Console.WriteLine($"This year christmas falls on {xmasDay} \n"); Console.WriteLine($"Our tree will be {xmas.TreeHeight} feet high \n"); Console.WriteLine("Here are the presents we would like:"); foreach (var present in xmas.Presents) { Console.WriteLine($" {present}"); } Console.WriteLine($"\n We like to call Santa, {xmas.Santa}"); }
static void Main(string[] args) { var xmas = new Christmas(); var xmasDay = Christmas.Day.Thursday; xmas.Santa = "Kris Kringle"; xmas.Presents = new string[3] { "Playstation", "Guitar", "Computer", }; xmas.TreeHeight = 10; Console.WriteLine($"This year christmas falls on {xmasDay} \n"); Console.WriteLine($"Our tree will be {xmas.TreeHeight} feet high \n"); Console.WriteLine("Here are the presents we would like:"); foreach (var present in xmas.Presents) { Console.WriteLine($" {present}"); } Console.WriteLine($"\n We like to call Santa, {xmas.Santa}"); }
static void Main(string[] args) { var xmas = new Christmas(); var xmasDay = Christmas.Day.Friday; //done set Santa's name to Kris Kringle xmas.Santa = "Kris Kringle"; //done Insert 3 presents you would like for xmas. They must be strings xmas.Presents = new string[3] { "Xbox", "Nintendo Switch", "iPhone X" }; //done Set the TreeHeight to 10 xmas.TreeHeight = 10; //$ string interpolation - Console.WriteLine($"This year christmas falls on {xmasDay} \n"); Console.WriteLine($"Our tree will be {xmas.TreeHeight} feet high \n"); Console.WriteLine("Here are the presents we would like:"); /*the target framework netcoreapp3.0 is out of support*/ foreach (var present in xmas.Presents) { Console.WriteLine($" {present}"); } Console.WriteLine($"\n We like to call Santa, {xmas.Santa}"); }
static void Main(string[] args) { var xmas = new Christmas(); var xmasDay = Christmas.Day.Thursday; //DONE-CJ set Santa's name to Kris Kringle xmas.Santa = null; xmas.Santa = "Kris Kringle"; //DONE-CJ Insert 3 presents you would like for xmas. They must be strings xmas.Presents = new string[3] { "iphone X", "Chico's Gift Card", "BMW" }; //DONE-CJ Set the TreeHeight to 10 xmas.TreeHeight = 10; Console.WriteLine($"This year christmas falls on {xmasDay} \n"); Console.WriteLine($"Our tree will be {xmas.TreeHeight} feet high \n"); Console.WriteLine("Here are the presents we would like:"); foreach (var present in xmas.Presents) { Console.WriteLine($" {present}"); } Console.WriteLine($"\n We like to call Santa, {xmas.Santa}"); }
static void Main(string[] args) { var xmas = new Christmas(); var xmasDay = Christmas.Day.Thursday; xmas.Santa = "Kris Kingle"; xmas.msSanta = "Ho Ho Ho"; xmas.Presents = new string[3] { "Tesla Car", "Cuban Cigar", "Sapphire Bracelet" }; xmas.TreeHeight = 10; Console.WriteLine($"This year christmas falls on {xmasDay} \n"); Console.WriteLine($"Our tree will be {xmas.TreeHeight} feet high \n"); Console.WriteLine("Here are the presents we would like:"); foreach (var present in xmas.Presents) { Console.WriteLine($" {present}"); } Console.WriteLine($"\n We like to call Santa, {xmas.Santa}"); Console.WriteLine($"\n We like to call Mrs. Santa, {xmas.msSanta}"); }
static void Main(string[] args) { var xmas = new Christmas(); var xmasDay = Christmas.Day.Thursday; //DONE set Santa's name to Kris Kringle xmas.Santa = "Kris Kringle"; //DONE Insert 3 presents you would like for xmas. They must be strings xmas.Presents = new string[3] { "Xbox", "Nintendo Switch", "iPhone X" }; //DONE Set the TreeHeight to 10 xmas.TreeHeight = 10; Console.WriteLine($"This year christmas falls on {xmasDay} \n"); Console.WriteLine($"Our tree will be {xmas.TreeHeight} feet high \n"); Console.WriteLine("Here are the presents we would like:"); foreach (var present in xmas.Presents) { Console.WriteLine($" {present}"); } Console.WriteLine($"\n We like to call Santa, {xmas.Santa}"); Console.WriteLine("Press any key to continue..."); }
static void Main(string[] args) { var xmas = new Christmas(); var xmasDay = Christmas.Day.Thursday; //DONE set Santa's name to Kris Kringle (was null) xmas.Santa = "Kris Kringle"; //DONE Insert 3 presents you would like for xmas. They must be strings (no new string) xmas.Presents = new string[3] { "nintendo", "xbox", "gaming computer" }; //DONE Set the TreeHeight to 10 (old value was null) xmas.TreeHeight = 10; Console.WriteLine($"This year christmas falls on {xmasDay} \n"); Console.WriteLine($"Our tree will be {xmas.TreeHeight} feet high \n"); Console.WriteLine("Here are the presents we would like:"); foreach (var present in xmas.Presents) { Console.WriteLine($" {present}"); } Console.WriteLine($"\n We like to call Santa, {xmas.Santa}"); }
static void Main(string[] args) { var xmas = new Christmas(); var xmasDay = Christmas.Day.Thursday; // DONE xmas.Santa = "Kris Kringle"; // Done xmas.Presents = new string[3] { "some money", "6600 xt", "X570 Dark OC" }; // Done xmas.TreeHeight = 10; Console.WriteLine($"This year christmas falls on {xmasDay} \n"); Console.WriteLine($"Our tree will be {xmas.TreeHeight} feet high \n"); Console.WriteLine("Here are the presents we would like:"); foreach (var present in xmas.Presents) { Console.WriteLine($" {present}"); } Console.WriteLine($"\n We like to call Santa, {xmas.Santa}"); }
static void Main(string[] args) { var xmas = new Christmas(); var xmasDay = Christmas.Day.Thursday; //DONE set Santa's name to Krampus xmas.Santa = "ole fat ass"; //DONE Insert 3 presents you would like for xmas. They must be strings xmas.Presents = new string[3] { "420 hula hoops", "69 live alligators", "actual mfn lava" }; //DONE Set the TreeHeight to 69 xmas.TreeHeight = 69; Console.WriteLine($"This year christmas falls on {xmasDay} \n"); Console.WriteLine($"Our tree will be {xmas.TreeHeight} feet high \n"); Console.WriteLine("Here are the presents we would like:"); foreach (var present in xmas.Presents) { Console.WriteLine($" {present}"); } Console.WriteLine($"\n We like to call Santa, {xmas.Santa}"); }
static void Main(string[] args) { var xmas = new Christmas(); var ChanukahDay = Christmas.Day.Thursday; xmas.Tzadik = "The Rebbe"; xmas.Presents = new string[3] { "chocolate coins", "dreidels", "one million dollars" }; xmas.MenorahHeight = 5; Console.WriteLine($"This year Chanukah falls on {ChanukahDay} \n"); Console.WriteLine($"Our menorah will be {xmas.MenorahHeight} feet high \n"); Console.WriteLine("Here are the presents we would like:"); foreach (var present in xmas.Presents) { Console.WriteLine($" {present}"); } Console.WriteLine($"\n We like to learn from {xmas.Tzadik}"); }
static void Main(string[] args) { var xmas = new Christmas(); var xmasDay = Christmas.Day.Thursday; xmas.Santa = "Kris Kringle"; xmas.Presents = new string[3] { "Nintendo Switch", "A Generic Bike", "New Piano" }; xmas.TreeHeight = 10; Console.WriteLine($"This year christmas falls on {xmasDay} \n"); Console.WriteLine($"Our tree will be {xmas.TreeHeight} feet high \n"); Console.WriteLine("Here are the presents we would like:"); foreach (var present in xmas.Presents) { Console.WriteLine($" {present}"); } Console.WriteLine($"\n We like to call Santa, {xmas.Santa}"); }
static void Main(string[] args) { var xmas = new Christmas(); var xmasDay = Christmas.Day.Thursday; xmas.Santa = "Kris Kringle"; //TODO Insert 3 presents you would like for xmas. They must be strings xmas.Presents = new [] { "LED Lights", "Webcam", "Monitor" }; //TODO Set the TreeHeight to 10 xmas.TreeHeight = 10; Console.WriteLine($"This year christmas falls on {xmasDay} \n"); Console.WriteLine($"Our tree will be {xmas.TreeHeight} feet high \n"); Console.WriteLine("Here are the presents we would like:"); foreach (var present in xmas.Presents) { Console.WriteLine($" {present}"); } Console.WriteLine($"\n We like to call Santa, {xmas.Santa}"); }
static void Main(string[] args) { var xmas = new Christmas(); var xmasDay = Christmas.Day.Thursday; //TODO set Santa's name to Kris Kringle xmas.Santa = "Kris Kringle"; //TODO Insert 3 presents you would like for xmas. They must be strings xmas.Presents = new string[3] { "xbox", "money", "playstation 4" }; //TODO Set the TreeHeight to 10 xmas.TreeHeight = 10; Console.WriteLine($"This year christmas falls on {xmasDay} \n"); Console.WriteLine($"Our tree will be {10} feet high \n"); Console.WriteLine("Here are the presents we would like:"); foreach (var present in xmas.Presents) { Console.WriteLine($" {present}"); } Console.WriteLine($"\n We like to call Santa, {xmas.Santa}"); var thisString = "Eggs"; var numINt = 16; var girlChar = 'q'; var teaBool = false; var twinDouble = 15 * 12; Console.WriteLine("eggs" + "16" + "q" + "false" + "15*12"); }