Question: 1 . In the project that you just created, do the following ( 7 points ) : a . Use the built - in function

1. In the project that you just created, do the following (7 points):
a.
Use the built-in function Console.WriteLine() to print This is the first question in the screen (1 point).
b.
Create three variables of the String data type, named firstName, lastName, and fullName, respectively (1 point).
c.
Use the built-in function Console.ReadLine() to get the users input for firstName and lastName. You need to print some hint information before accepting users input. For instance, you need to print Please enter your first name before accepting user's input for firstName, same for lastName (1 point).
d.
Concatenate the variables firstNmae and lastName together, and assign the result to the variable fullName, please be noticed that there is a space between firstName and lastName in the result (1 point).
e.
Use the fullName to display the output in the screen as follows (for instance, if fullName =Xichen Zhang):
Hello, Xichen Zhang, have a nice day!
You need to use three different ways to do the printing.
o
The first way is to use the index of the variable to print the result, i.e.,....{0}...., variable_name(1 point).
o The second way is to use the & to print the result (1 point).
o The third way is to use the $ to print the result (1 point).
f.
Print an empty line using the built-in function Console.WriteLine().

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!