Question: Questions: (1) (2 marks) Create and test a C console application that does the following (1) Create three variables of the string data type, named

Questions: (1) (2 marks) Create and test a C console application that does the following (1) Create three variables of the string data type, named fin name, last name, and full name respectively; (2) Use the built-in function Console.ReadLine() to get the user's input for first name and last_name using the following statements: Console.WriteLine("Enter your first name:"); first_name Console.ReadLine(): Console.WriteLine("Enter your last name: "); last_name - Console.ReadLine(); (3) Concatenate the variables first_name and last name together, and then assign the result to the variable full name as follows (there is a space between the two double quotes); full_name = first_name + " " + last_name; (4) Use the following statement to display the output: Console.WriteLine("Thank you + full name); (2) (4 marks) Create and test a C# console application that does the following: (1) Create three variables of int data type, named x, y, respectively: (2) Use the built-in function Console.ReadLine() to get the user's input for x and y as follows (it is assured that the user always inputs integers when testing this program); Console.WriteLine("Input the first number:"); Convert.ToInt32(Console.ReadLine(): Console.WriteLine("Input the second number:"); y - Convert.ToInt32(Console.ReadLine(); (3) Compute the smaller of x and y, and then assign the result to z as follows: if (x
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
