public static void Main()
Console.WriteLine("Welcome Visitor");
Console.Write("Select an exercise between 1 and 10 to continue: ");
Exercise = Convert.ToInt32(Console.ReadLine());
while (Exercise < 1 || Exercise > 10)
Console.WriteLine("Invalid Exercise");
Console.WriteLine("Enter number between 1 and 10: ");
Exercise = Convert.ToInt32(Console.ReadLine());
while (Exercise >= 1 && Exercise <= 10)
Console.WriteLine("This is Exercise 1.1");
Console.WriteLine("What is your name?");
MyName = Console.ReadLine();
Console.WriteLine("Are you Male or Female?");
Gender = Console.ReadLine();
while (Gender != "Male" && Gender != "Female")
Console.WriteLine("Invalid. Please try again.");
Gender = Console.ReadLine();
Console.WriteLine("Welcome, Mr. {0}", MyName);
Console.WriteLine("Welcome, Ms. {0}", MyName);
if (Exercise == 2 || Exercise == 3)
Console.WriteLine("This is Exercise 1.2 and 1.3");
Console.Write("How old are you? ");
Age = Convert.ToInt32(Console.ReadLine());
Console.Write("What is your height in cm? ");
Height = Convert.ToInt32(Console.ReadLine());
Console.Write("What is your weight in Kg? ");
Weight = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("You are {0} years old, you are {1} cm tal, and your weight is {2} Kg!", Age, Height, Weight);
Console.WriteLine("This is Exercise 1.4");
Console.WriteLine("Hello, my initials are:");
Console.WriteLine(" ******* ** ** ");
Console.WriteLine(" *** ** ** ** ");
Console.WriteLine(" ** ** ** ");
Console.WriteLine(" * ********** ");
Console.WriteLine(" * ********** ");
Console.WriteLine(" ** ** ** ");
Console.WriteLine(" *** ** ** ** ");
Console.WriteLine(" ******* ** ** ");
Console.WriteLine("Assuming that x=7 and y=4, what does each of the following statementes display?");
Console.WriteLine("x=x, y=y");
Console.WriteLine("x = (0), y = (1)", xerxes, yoda);
Console.WriteLine("x = {0}, y = {1}", xerxes, yoda);
Console.WriteLine("This is Exercise 1.6");
Console.WriteLine("x = x + y");
Console.Write("Type in new value for x: ");
xanos = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("x = {0}", xanos);
Console.WriteLine("This is Exercise 1.7");
Console.WriteLine("Welcome to Fontys ICT in Eindhoven");
Console.Write("Welcome ");
Console.Write("Fontys ");
Console.Write("Eindhoven");
Console.WriteLine("{0} to {1} {2} in {3}", Apple, Banana, Cucumber, Dorito);
Console.WriteLine("This is Exercise 1.8");
Console.WriteLine("old\nMacDonald\nhad\na farm \nEe i ee i oh!");
Console.WriteLine("***");
Console.WriteLine("*****");
Console.WriteLine("{0}\n{1}\n{2}", 0, 1, 2);
Console.WriteLine("This is Exercise 1.9");
Console.WriteLine("Value for x = {0}.", xulu);
Console.WriteLine("Value for y = {0}", yankey);
Console.WriteLine("At the end: x = {0}, y = {1}", yankey, xulu);
Console.WriteLine("Hello!");
Console.WriteLine("Calculate the total PCS EC's for an ICT student: PCS1 + PCS2 + PCS3 + PCS4.");
Console.WriteLine("For each PCS course a student can earn either:");
Console.WriteLine(" 3 EC's <passed the exam> or");
Console.WriteLine(" 0 EC's <passed the exam>.");
Console.Write("Please, enter the EC's for PCS1: ");
PCS1 = Convert.ToInt32(Console.ReadLine());
while (PCS1 != 0 && PCS1 != 3)
Console.WriteLine("Invalid.");
Console.Write("Please, enter the EC's for PCS1: ");
PCS1 = Convert.ToInt32(Console.ReadLine());
Console.Write("Please, enter the EC's for PCS2: ");
PCS2 = Convert.ToInt32(Console.ReadLine());
while (PCS2 != 0 && PCS2 != 3)
Console.WriteLine("Invalid.");
Console.Write("Please, enter the EC's for PCS2: ");
PCS2 = Convert.ToInt32(Console.ReadLine());
Console.Write("Please, enter the EC's for PCS3: ");
PCS3 = Convert.ToInt32(Console.ReadLine());
while (PCS3 != 0 && PCS3 != 3)
Console.WriteLine("Invalid.");
Console.Write("Please, enter the EC's for PCS3: ");
PCS3 = Convert.ToInt32(Console.ReadLine());
Console.Write("Please, enter the EC's for PCS4: ");
PCS4 = Convert.ToInt32(Console.ReadLine());
while (PCS4 != 0 && PCS4 != 3)
Console.WriteLine("Invalid.");
Console.Write("Please, enter the EC's for PCS4: ");
PCS4 = Convert.ToInt32(Console.ReadLine());
PCSTotal = PCS1 + PCS2 + PCS3 + PCS4;
Console.WriteLine("Based on the earned Ec's for PCS1 <{0}>, PCS2 <{1}>, PCS3 <{2}>, and PCS4 <{3}>, ", PCS1, PCS2, PCS3, PCS4);
Console.WriteLine("the total earned EC's for PCS is {0}", PCSTotal);
Console.WriteLine("This is the end of this exercise.");
Console.WriteLine("Select an exercise between 1 and 10 to continue, or press 0 to exit");
Exercise = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("You are now exiting the program. Hit any key to exit...");