From 811a18d66ebe5e5ae4eeb1f2759e1a84e1b9bfa1 Mon Sep 17 00:00:00 2001 From: "James.Woodard" Date: Mon, 9 Jul 2018 19:55:57 -0500 Subject: [PATCH 1/2] modified hello world --- HelloWorld/HelloWorld.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HelloWorld/HelloWorld.cs b/HelloWorld/HelloWorld.cs index 8168c805..532bd164 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 ya dingus!"); } } } From ad21467953cd70f867d5e306df8fb5b9d7751f61 Mon Sep 17 00:00:00 2001 From: "James.Woodard" Date: Tue, 10 Jul 2018 10:19:55 -0500 Subject: [PATCH 2/2] upgraded hello world assignment --- HelloWorld/HelloWorld.cs | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/HelloWorld/HelloWorld.cs b/HelloWorld/HelloWorld.cs index 532bd164..cdf3d2c7 100644 --- a/HelloWorld/HelloWorld.cs +++ b/HelloWorld/HelloWorld.cs @@ -6,7 +6,21 @@ class Program { static void Main(string[] args) { - Console.WriteLine("Hello ya dingus!"); + string name = ""; + string ccn = ""; + int exp = 0; + int cvv = 0; + + Console.WriteLine("Please enter your full name as written on your credit card: "); + name = Console.ReadLine(); + Console.WriteLine("Please enter your full credit card number, with no spaces or dashes: "); + ccn = Console.ReadLine(); + Console.WriteLine("Please enter the expiration date of your card as a 6 digit number with no spaces: "); + exp = Convert.ToInt32(Console.ReadLine()); + Console.WriteLine("Please enter the 3-digit CVV number on the back of your card: "); + cvv = Convert.ToInt32(Console.ReadLine()); + + Console.WriteLine("Hello! My name is {0} and my credit card number is {1}. The expiration date is {2} and the CVV number is {3}.", name, ccn, exp, cvv); } } }