Question: Questions: (1) (2 marks) In Visual Studio, create and test a console application that does the following: (1) Create three variables of the String data

 Questions: (1) (2 marks) In Visual Studio, create and test a

Questions: (1) (2 marks) In Visual Studio, create and test a console application that does the following: (1) Create three variables of the String data type, named firstName, lastName, and fullName respectively; (2) Use the built-in function Console.ReadLine() to get the user's input for firstName and lastName using the following statements: Console.WriteLine("Enter your first name:") firstName = Console.ReadLine() Console.WriteLine("Enter your last name:") lastName = Console.ReadLine() (3) Concatenate the variables firstName and lastName together, and then assign the result to the variable fullName as follows (there is a space between the two double quotes): fullName = firstName & " " & lastName (4) Use the following statement to display the output: Console.WriteLine(Thank you & fullName) (2) (2 marks) In Visual Studio, create and test a console application that does the following: (1) Create three variables of Integer data type, named x, y, z respectively; (2) Use the built-in function Console.ReadLine() to get the user's input for x and y as follows (it is assumed that the user always inputs integers when testing this program): Console.WriteLine("Input the first number:) x = CType(Console.ReadLine(), Integer) Console.WriteLine("Input the second number:") y= CType(Console.ReadLine(), Integer) (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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!