From 25711eb79f3a39787ffc043784ff2458fc0cb681 Mon Sep 17 00:00:00 2001 From: Jason Connolly Date: Mon, 9 Jul 2018 19:58:41 -0500 Subject: [PATCH 1/7] HelloJason --- HelloWorld/HelloWorld.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HelloWorld/HelloWorld.cs b/HelloWorld/HelloWorld.cs index 8168c805..2f6658bf 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("Hello Jason!"); } } } From 567688d376de8787bb522336b57b3a77746d7bbc Mon Sep 17 00:00:00 2001 From: Jason Connolly Date: Mon, 16 Jul 2018 10:23:43 -0500 Subject: [PATCH 2/7] HelloWorl --- HelloWorld/HelloWorld.cs | 47 ++++++++++++++++++++++++++++++++-------- 1 file changed, 38 insertions(+), 9 deletions(-) diff --git a/HelloWorld/HelloWorld.cs b/HelloWorld/HelloWorld.cs index 2f6658bf..3b5084c5 100644 --- a/HelloWorld/HelloWorld.cs +++ b/HelloWorld/HelloWorld.cs @@ -1,12 +1,41 @@ using System; - -namespace HelloWorld + +public class Program { - class Program - { - static void Main(string[] args) - { - Console.WriteLine("Hello Jason!"); - } - } + public static void Main() + { + string name = ""; + string lastname = ""; + int age = 0; + int year = 7; + string band = ""; + string team = ""; + + + + + Console.WriteLine("Please enter your first name: "); + name = Console.ReadLine(); + Console.WriteLine("Please enter your last name: "); + lastname = Console.ReadLine(); + Console.WriteLine("Please enter your age: "); + age = Convert.ToInt32(Console.ReadLine()); + //Console.WriteLine("Please enter 7: "); + //year = Convert.ToInt32(Console.ReadLine()); + //comment: put divisibale into line 10 + Console.WriteLine("Who is your favorite band: "); + band = Console.ReadLine(); + Console.WriteLine("What sports team do you cheer for: "); + team = Console.ReadLine(); + + + Console.WriteLine(@"Hello! + My name is {0} {1}. + I am {3} in dog years. + My favorite band is {4}. + I support {5}! ", name, lastname, age, year*age, band, team); + + + + } } From 6f0e92a4428401bae1348e9a5dadac22ecd80ecc Mon Sep 17 00:00:00 2001 From: Jason Connolly Date: Wed, 18 Jul 2018 12:51:46 -0500 Subject: [PATCH 3/7] HelloWorld --- HelloWorld/HelloWorld.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HelloWorld/HelloWorld.cs b/HelloWorld/HelloWorld.cs index 3b5084c5..8e62805d 100644 --- a/HelloWorld/HelloWorld.cs +++ b/HelloWorld/HelloWorld.cs @@ -9,7 +9,7 @@ public static void Main() int age = 0; int year = 7; string band = ""; - string team = ""; + string team = "" From 019ffcf2ce6983d82d007e6a0dba0975f5663d23 Mon Sep 17 00:00:00 2001 From: Jason Connolly Date: Wed, 18 Jul 2018 12:53:00 -0500 Subject: [PATCH 4/7] HelloWorld --- HelloWorld/HelloWorld.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HelloWorld/HelloWorld.cs b/HelloWorld/HelloWorld.cs index 8e62805d..3b5084c5 100644 --- a/HelloWorld/HelloWorld.cs +++ b/HelloWorld/HelloWorld.cs @@ -9,7 +9,7 @@ public static void Main() int age = 0; int year = 7; string band = ""; - string team = "" + string team = ""; From 51e4146168271b64840dc151729a99a132108aef Mon Sep 17 00:00:00 2001 From: Jason Connolly Date: Wed, 3 Oct 2018 21:10:33 -0500 Subject: [PATCH 5/7] week one updates --- HelloWorld/HelloWorld.cs | 60 ++++++++++++++++++---------------------- Quiz1/Quiz1.cs | 23 +++++++++++++++ Quiz1/Quiz1.csproj | 8 ++++++ 3 files changed, 58 insertions(+), 33 deletions(-) create mode 100644 Quiz1/Quiz1.cs create mode 100644 Quiz1/Quiz1.csproj diff --git a/HelloWorld/HelloWorld.cs b/HelloWorld/HelloWorld.cs index 3b5084c5..84a82396 100644 --- a/HelloWorld/HelloWorld.cs +++ b/HelloWorld/HelloWorld.cs @@ -1,41 +1,35 @@ using System; - + public class Program { - public static void Main() - { - string name = ""; - string lastname = ""; - int age = 0; - int year = 7; - string band = ""; - string team = ""; - - + public static void Main() + { + string name = ""; + string lastname = ""; + int age = 0; + int year = 7; + string band = ""; + string team = ""; - - Console.WriteLine("Please enter your first name: "); - name = Console.ReadLine(); - Console.WriteLine("Please enter your last name: "); - lastname = Console.ReadLine(); - Console.WriteLine("Please enter your age: "); - age = Convert.ToInt32(Console.ReadLine()); - //Console.WriteLine("Please enter 7: "); - //year = Convert.ToInt32(Console.ReadLine()); - //comment: put divisibale into line 10 - Console.WriteLine("Who is your favorite band: "); - band = Console.ReadLine(); - Console.WriteLine("What sports team do you cheer for: "); - team = Console.ReadLine(); - - - Console.WriteLine(@"Hello! - My name is {0} {1}. - I am {3} in dog years. - My favorite band is {4}. - I support {5}! ", name, lastname, age, year*age, band, team); + Console.WriteLine("Please enter your first name:"); + // ReadLine enters the string + name = Console.ReadLine(); + Console.WriteLine("Please enter your last name:"); + lastname = Console.ReadLine(); + Console.WriteLine("Please enter your age:"); + // Convert.ToInt32 takes in the numbers + age = Convert.ToInt32(Console.ReadLine()); + Console.WriteLine("Who is your favorite band:"); + band = Console.ReadLine(); + Console.WriteLine("What sports team do you cheer for:"); + team = Console.ReadLine(); - } + Console.WriteLine + (@"Hello! My name is {0} {1}. + I am {3} in dog years. + My favorite band is {4}. + I support {5}! ", name, lastname, age, year * age, band, team); + } } diff --git a/Quiz1/Quiz1.cs b/Quiz1/Quiz1.cs new file mode 100644 index 00000000..89a07649 --- /dev/null +++ b/Quiz1/Quiz1.cs @@ -0,0 +1,23 @@ +using System; + +namespace Quiz1 +{ + class Program + { + static void Main(string[] args) + { + Console.WriteLine("Hello World!"); + Console.WriteLine("Make Notes!!!"); + Console.WriteLine("Welcome Back!"); + //use of the modules, be carefull using negatives + Console.WriteLine((7%(-3))); + Console.WriteLine((7%(3))); + + int x = 7; + int y = 7; + + Console.WriteLine(x++); + Console.WriteLine(++y); + } + } +} diff --git a/Quiz1/Quiz1.csproj b/Quiz1/Quiz1.csproj new file mode 100644 index 00000000..23df6047 --- /dev/null +++ b/Quiz1/Quiz1.csproj @@ -0,0 +1,8 @@ + + + + Exe + netcoreapp2.1 + + + From b19138e8d466c122a3157df752ba4ffc06b9c732 Mon Sep 17 00:00:00 2001 From: Jason Connolly Date: Fri, 5 Oct 2018 12:24:22 -0500 Subject: [PATCH 6/7] Quiz1.cs --- Quiz1/Quiz1.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Quiz1/Quiz1.cs b/Quiz1/Quiz1.cs index 89a07649..40b0d35d 100644 --- a/Quiz1/Quiz1.cs +++ b/Quiz1/Quiz1.cs @@ -7,7 +7,7 @@ class Program static void Main(string[] args) { Console.WriteLine("Hello World!"); - Console.WriteLine("Make Notes!!!"); + Console.WriteLine("Do Console Line Notes!!!"); Console.WriteLine("Welcome Back!"); //use of the modules, be carefull using negatives Console.WriteLine((7%(-3))); From 1a77a3bd3dac6b541742f9ab149079d644ba8415 Mon Sep 17 00:00:00 2001 From: Jason Connolly Date: Fri, 5 Oct 2018 14:19:31 -0500 Subject: [PATCH 7/7] HelloWorld --- HelloWorld1/HelloWorld1.csproj | 8 ++++++++ HelloWorld1/Helloworld1.cs | 26 ++++++++++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 HelloWorld1/HelloWorld1.csproj create mode 100644 HelloWorld1/Helloworld1.cs diff --git a/HelloWorld1/HelloWorld1.csproj b/HelloWorld1/HelloWorld1.csproj new file mode 100644 index 00000000..23df6047 --- /dev/null +++ b/HelloWorld1/HelloWorld1.csproj @@ -0,0 +1,8 @@ + + + + Exe + netcoreapp2.1 + + + diff --git a/HelloWorld1/Helloworld1.cs b/HelloWorld1/Helloworld1.cs new file mode 100644 index 00000000..c58de289 --- /dev/null +++ b/HelloWorld1/Helloworld1.cs @@ -0,0 +1,26 @@ +using System; + +namespace HelloWorld1 +{ + class Program + { + static void Main(string[] args) + { + { + string name = ""; + int age = 0; + int year = 0; + + Console.WriteLine("Please enter your name: "); + name = Console.ReadLine(); + Console.WriteLine("Please enter your age: "); + age = Convert.ToInt32(Console.ReadLine()); + Console.WriteLine("Please enter the year: "); + year = Convert.ToInt32(Console.ReadLine()); + + Console.WriteLine("Hello! My name is {0} and I am {1} years old. I was born in {2}.", name, age, year-age); + + } + } + } +} \ No newline at end of file