Answered step by step
Verified Expert Solution
Question
1 Approved Answer
1 . In the project that you just created, do the following ( 7 points ) : a . Use the built - in function
In the project that you just created, do the following points:
a
Use the builtin function Console.WriteLine to print This is the first question in the screen point
b
Create three variables of the String data type, named firstName, lastName, and fullName, respectively point
c
Use the builtin 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 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 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, ie variablename point
o The second way is to use the & to print the result point
o The third way is to use the $ to print the result point
f
Print an empty line using the builtin function Console.WriteLine
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started