(Concatenating Strings) Write a program that reads a first name and a last name
ID: 3557915 • Letter: #
Question
(Concatenating Strings) Write a program that reads a first name and a last name from the user as two separate inputs and concatenates the first name and last name, separating them by a space. Display the concatenated name in a Label. You can store the user input in variables of type String, a primitive type used to represent string data. Figure 3.38 shows the completed application. You can create variables of type String just as you created variables of type Integer, except using the keyword String:
Fig. 3.38. Completed string concatenation application.
Dim firstName As String Dim lastName As String
Explanation / Answer
#include #include using namespace std; main () { string firstname; string lastname; string fullname; coutRelated Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.