Lec11A Strings
Lec11A Strings
gs
String Data
Type
• The String data type is used to store any textual data.
• This includes words, letters, or anything else you
would send in a text message.
• In programming, the text is delimited with double
quotes.
• For example: "CSU, Sacramento", "computer", and
"Year 1947" are all strings.
String Functions Data Type Conversion
Note:
‘ToCode(c)’ converts a character c to its ASCII equivalent.
ToInteger(dat
a)
Declare String month
Declare Integer monthNumber
9
ToInteger(data)
string
ToString(data)
Flowgorithm examples using
strings
Reversing a String
Counting Vowels in a string
Masking all digits (0-9) in a
string and displaying only
characters.
Thank
You