Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Programming With Visual Basic .NET

Authors: Carsten Thomsen

2nd Edition

1590590325, 978-1590590324

More Books

Students also viewed these Databases questions

Question

Identify the stimulants, and describe their effects.

Answered: 1 week ago

Question

3. Who would the members be?

Answered: 1 week ago

Question

What is DDL?

Answered: 1 week ago