From 9d93452fbfeb324e7708892a262e52c2fe49102d Mon Sep 17 00:00:00 2001 From: DeMarco Date: Mon, 1 Oct 2018 19:29:58 -0500 Subject: [PATCH 1/3] updated helloworld --- HelloWorld/HelloWorld.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HelloWorld/HelloWorld.cs b/HelloWorld/HelloWorld.cs index 8168c805..6a1d68cd 100644 --- a/HelloWorld/HelloWorld.cs +++ b/HelloWorld/HelloWorld.cs @@ -6,7 +6,7 @@ class Program { static void Main(string[] args) { - Console.WriteLine("Hello World!"); + Console.WriteLine("DeMarco"); } } } From c1f67cb452f317916932109779e34bfab49b36ab Mon Sep 17 00:00:00 2001 From: DeMarco Date: Mon, 1 Oct 2018 20:21:40 -0500 Subject: [PATCH 2/3] 2nd update helloworld --- HelloWorld/HelloWorld.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HelloWorld/HelloWorld.cs b/HelloWorld/HelloWorld.cs index 6a1d68cd..7c4d0ab1 100644 --- a/HelloWorld/HelloWorld.cs +++ b/HelloWorld/HelloWorld.cs @@ -6,7 +6,7 @@ class Program { static void Main(string[] args) { - Console.WriteLine("DeMarco"); + Console.WriteLine("Hello DeMarco"); } } } From 223077e6dc380fdfbf6736eb57d92ed9ef6b71ea Mon Sep 17 00:00:00 2001 From: DeMarco Date: Wed, 3 Oct 2018 00:24:30 -0500 Subject: [PATCH 3/3] part 2 of lesson 1 --- HelloWorld/HelloWorld.cs | 26 ++++++++++++++++++-------- 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/HelloWorld/HelloWorld.cs b/HelloWorld/HelloWorld.cs index 7c4d0ab1..636eaa64 100644 --- a/HelloWorld/HelloWorld.cs +++ b/HelloWorld/HelloWorld.cs @@ -1,12 +1,22 @@ using System; -namespace HelloWorld +public class Program { - class Program - { - static void Main(string[] args) - { - Console.WriteLine("Hello DeMarco"); - } - } + public static void Main() + { + string carType = ""; + string model = ""; + int year = 0; + + Console.WriteLine("What is the make of your favorite car:"); + carType = Console.ReadLine(); + Console.WriteLine("What is the model of your favorite car:"); + model = Console.ReadLine(); + Console.WriteLine("Please enter the year:"); + year = Convert.ToInt32(Console.ReadLine()); + + Console.WriteLine("You wish you had a {1} {0}.", carType, model, year ); + + } + }