From a6773c2fe29b9062412db38a7401c9347ee13fcf Mon Sep 17 00:00:00 2001 From: Forrest-Flowers Date: Mon, 1 Oct 2018 19:28:19 -0500 Subject: [PATCH 1/2] initial commit --- HelloWorld/HelloWorld.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HelloWorld/HelloWorld.cs b/HelloWorld/HelloWorld.cs index 8168c805..725c0f84 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 Forrest!"); } } } From 95ffe26cc42d1110f36a2f6304d3d8d504142643 Mon Sep 17 00:00:00 2001 From: Forrest-Flowers Date: Wed, 3 Oct 2018 14:24:09 -0500 Subject: [PATCH 2/2] Added 'About Me' form to fill out. --- HelloWorld/HelloWorld.cs | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/HelloWorld/HelloWorld.cs b/HelloWorld/HelloWorld.cs index 725c0f84..da01f2bc 100644 --- a/HelloWorld/HelloWorld.cs +++ b/HelloWorld/HelloWorld.cs @@ -6,7 +6,31 @@ class Program { static void Main(string[] args) { - Console.WriteLine("Hello Forrest!"); + Console.WriteLine("Hello, please fill out the form."); + Form(); + } + static void Form() + { + string name = ""; + int age = 0; + int year = 0; + string food = ""; + string color = ""; + + Console.WriteLine("Please Enter your Name:"); + name = Console.ReadLine(); + Console.WriteLine("Please Enter your Age:"); + age = Convert.ToInt32(Console.ReadLine()); + Console.WriteLine("Enter the Current Year:"); + year = Convert.ToInt32(Console.ReadLine()); + Console.WriteLine("What is your favorite food?"); + food = Console.ReadLine(); + Console.WriteLine("What is your favorite color?"); + color = Console.ReadLine(); + + Console.WriteLine("Hello! My name is {0} and I am {1} years old. I was born in {2}. My favorite food is {3} and my favorite color is {4}.", name, age, year-age, food, color); + + } } }