From b3e769de89190d745688134f702f5692e8583905 Mon Sep 17 00:00:00 2001 From: Michael Rich Date: Mon, 1 Oct 2018 19:45:23 -0500 Subject: [PATCH 1/3] Making Hello World personalized --- HelloWorld/HelloWorld.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HelloWorld/HelloWorld.cs b/HelloWorld/HelloWorld.cs index 8168c805..9f298d5f 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 World! It's Michael Rich!"); } } } From 770f2bdcfe9279dcb096e3cd346f049ebcc8f701 Mon Sep 17 00:00:00 2001 From: Michael Rich Date: Tue, 2 Oct 2018 05:03:50 -0500 Subject: [PATCH 2/3] reviewed homework code and changed code into a mad lib --- HelloWorld/HelloWorld.cs | 62 ++++++++++++++++++++++++++++++++++------ 1 file changed, 54 insertions(+), 8 deletions(-) diff --git a/HelloWorld/HelloWorld.cs b/HelloWorld/HelloWorld.cs index 9f298d5f..dcb8bd78 100644 --- a/HelloWorld/HelloWorld.cs +++ b/HelloWorld/HelloWorld.cs @@ -1,12 +1,58 @@ using System; -namespace HelloWorld + +public class Program { - class Program + public static void Main() { - static void Main(string[] args) - { - Console.WriteLine("Hello World! It's Michael Rich!"); - } - } -} + + string adjective1 = ""; + string adjective2 = ""; + string adjective3 = ""; + string adjective4 = ""; + string adjective5 = ""; + string adverb = ""; + string number = ""; + string pluralNoun1 = ""; + string pluralNoun2 = ""; + string pluralNoun3 = ""; + string pluralNoun4 = ""; + string pluralNoun5 = ""; + string relative = ""; + string verb1 = ""; + string verb2 = ""; + + Console.WriteLine("Enter a verb: "); + verb1 = Console.ReadLine(); + Console.WriteLine("Enter an adjective: "); + adjective1 = Console.ReadLine(); + Console.WriteLine("Enter a plural Noun: "); + pluralNoun1 = Console.ReadLine(); + Console.WriteLine("Enter an adjective: "); + adjective2 = Console.ReadLine(); + Console.WriteLine("Enter an adverb: "); + adverb = Console.ReadLine(); + Console.WriteLine("Enter a verb: "); + verb2 = Console.ReadLine(); + Console.WriteLine("Enter a number: "); + number = Console.ReadLine(); + Console.WriteLine("Enter an adjective: "); + adjective3 = Console.ReadLine(); + Console.WriteLine("Enter a plural Noun: "); + pluralNoun2 = Console.ReadLine(); + Console.WriteLine("Enter a plural Noun: "); + pluralNoun3 = Console.ReadLine(); + Console.WriteLine("Enter a plural Noun: "); + pluralNoun4 = Console.ReadLine(); + Console.WriteLine("Enter a type of plural relative: "); + relative = Console.ReadLine(); + Console.WriteLine("Enter an adjective: "); + adjective4 = Console.ReadLine(); + Console.WriteLine("Enter an adjective: "); + adjective5 = Console.ReadLine(); + Console.WriteLine("Enter a plural Noun: "); + pluralNoun5 = Console.ReadLine(); + + Console.WriteLine("Come {0} at WALMART, where you`ll receive {1} discounts on all of your favorite brand name {2}. Our {3} and {4} associates are there to {5} you {6} hours a day. Here you will find {7} prices on the {8} you need. {9} for the moms, {10} for the kids and all the latest electronics for the {11}. So come on down to your {12} {13} WALMART where the {14} come first.", verb1, adjective1, pluralNoun1, adjective2, adverb, verb2, number, adjective3, pluralNoun2, pluralNoun3, pluralNoun4, relative, adjective4, adjective5, pluralNoun5); + } +} \ No newline at end of file From 13c4876f8a4de9c16d1f94b57f7e4937dc7840bd Mon Sep 17 00:00:00 2001 From: Michael Rich Date: Wed, 3 Oct 2018 11:01:57 -0500 Subject: [PATCH 3/3] I forgot what an adverb was. changed variable adverb to verbEndingInIng --- HelloWorld/HelloWorld.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/HelloWorld/HelloWorld.cs b/HelloWorld/HelloWorld.cs index dcb8bd78..434b8bcc 100644 --- a/HelloWorld/HelloWorld.cs +++ b/HelloWorld/HelloWorld.cs @@ -11,7 +11,7 @@ public static void Main() string adjective3 = ""; string adjective4 = ""; string adjective5 = ""; - string adverb = ""; + string verbEndingInIng = ""; string number = ""; string pluralNoun1 = ""; string pluralNoun2 = ""; @@ -30,8 +30,8 @@ public static void Main() pluralNoun1 = Console.ReadLine(); Console.WriteLine("Enter an adjective: "); adjective2 = Console.ReadLine(); - Console.WriteLine("Enter an adverb: "); - adverb = Console.ReadLine(); + Console.WriteLine("Enter an verb ending in ing: "); + verbEndingInIng = Console.ReadLine(); Console.WriteLine("Enter a verb: "); verb2 = Console.ReadLine(); Console.WriteLine("Enter a number: "); @@ -53,6 +53,6 @@ public static void Main() Console.WriteLine("Enter a plural Noun: "); pluralNoun5 = Console.ReadLine(); - Console.WriteLine("Come {0} at WALMART, where you`ll receive {1} discounts on all of your favorite brand name {2}. Our {3} and {4} associates are there to {5} you {6} hours a day. Here you will find {7} prices on the {8} you need. {9} for the moms, {10} for the kids and all the latest electronics for the {11}. So come on down to your {12} {13} WALMART where the {14} come first.", verb1, adjective1, pluralNoun1, adjective2, adverb, verb2, number, adjective3, pluralNoun2, pluralNoun3, pluralNoun4, relative, adjective4, adjective5, pluralNoun5); + Console.WriteLine("Come {0} at WALMART, where you`ll receive {1} discounts on all of your favorite brand name {2}. Our {3} and {4} associates are there to {5} you {6} hours a day. Here you will find {7} prices on the {8} you need. {9} for the moms, {10} for the kids and all the latest electronics for the {11}. So come on down to your {12} {13} WALMART where the {14} come first.", verb1, adjective1, pluralNoun1, adjective2, verbEndingInIng, verb2, number, adjective3, pluralNoun2, pluralNoun3, pluralNoun4, relative, adjective4, adjective5, pluralNoun5); } } \ No newline at end of file