AlphaNumeric Variables
in our previous section we talked about this variable type. the two that we work with the most are
char and string
char - is a variable type that can store any symbol type produced by a keyboard. It can only store one symbol Alphabetic, Numeric, or special keys.
string - is a variable type that can store a large number of AlphaNumeric characters. These characters can be a entire block of text with numbers in it or even special characters made by the keyboard.
char and string
char - is a variable type that can store any symbol type produced by a keyboard. It can only store one symbol Alphabetic, Numeric, or special keys.
string - is a variable type that can store a large number of AlphaNumeric characters. These characters can be a entire block of text with numbers in it or even special characters made by the keyboard.
The video
Intro to AlphaNumeric Variables
The .NET Framework
Your Assignment
Where do these Variables go?
Copy and paste the following block of PsuedoCode into Visual Studios.
1. Create variables for every line of PsuedoCode that needs one.
2. For other lines of PsuedoCode Print out what is contained in those variables to the console.
3. Use Concatenation to output correct lines of text to the Console, when needed.
4. Screen shot your code (including your name block) and your Console results
5. Turn both Screenshots into google Classroom
Copy and paste the following block of PsuedoCode into Visual Studios.
1. Create variables for every line of PsuedoCode that needs one.
2. For other lines of PsuedoCode Print out what is contained in those variables to the console.
3. Use Concatenation to output correct lines of text to the Console, when needed.
4. Screen shot your code (including your name block) and your Console results
5. Turn both Screenshots into google Classroom
the Code
// create the correct type of variable, and name it teacherName for this data - Mr. Bishop
// create the correct type of variable, and name it teacherLocation for this data - is in
// create the correct type of variable, and name it teacherDescriptors for this data - AWESOME and amazing
// create the correct type of variable, and name it teacherRoom for this data - Room B202
// create the correct type of variable, and name it teacherTorF for this data - T
// create the correct type of variable, and name it teacherLocation2 for this data - the world
// create the correct type of variable, and name it teacherDescriptors2 - most Teacher he is the best
// print out to the Console teacherName
// print out to the Console teacherLocation
// print out to the Console teacherRoom
// Concatenate these variables print out to the Console teacherName, teacherLocation, teacherRoom
// print out to the Console only the second word in teacherLocation
// print out to the Console only the first word in teacherLocation
// Concatenate the variables on the next line and print the message out to the Console
// teacherName, first word of teacherLocation, first word of teacherLocation2, last word in teacherDescriptors2, last word in teacherLocation, teacherLocation2
// Copy the line of code from above and put in your name instead of mine
// Concatenate the variables on the next line and print the message out to the Console
// teacherName, first word of teacherLocation, first word of teacherDescriptors, middle word of teacherDescriptors, last word teacherDescriptors
// Copy the line of code from above and put a friends name instead of mine
// create the correct type of variable, and name it teacherLocation for this data - is in
// create the correct type of variable, and name it teacherDescriptors for this data - AWESOME and amazing
// create the correct type of variable, and name it teacherRoom for this data - Room B202
// create the correct type of variable, and name it teacherTorF for this data - T
// create the correct type of variable, and name it teacherLocation2 for this data - the world
// create the correct type of variable, and name it teacherDescriptors2 - most Teacher he is the best
// print out to the Console teacherName
// print out to the Console teacherLocation
// print out to the Console teacherRoom
// Concatenate these variables print out to the Console teacherName, teacherLocation, teacherRoom
// print out to the Console only the second word in teacherLocation
// print out to the Console only the first word in teacherLocation
// Concatenate the variables on the next line and print the message out to the Console
// teacherName, first word of teacherLocation, first word of teacherLocation2, last word in teacherDescriptors2, last word in teacherLocation, teacherLocation2
// Copy the line of code from above and put in your name instead of mine
// Concatenate the variables on the next line and print the message out to the Console
// teacherName, first word of teacherLocation, first word of teacherDescriptors, middle word of teacherDescriptors, last word teacherDescriptors
// Copy the line of code from above and put a friends name instead of mine