strings
TRANSCRIPT
![Page 1: Strings](https://reader036.vdocuments.us/reader036/viewer/2022083002/558a8c71d8b42a4e548b46c0/html5/thumbnails/1.jpg)
String Operations
LeftRight
Concatenation
![Page 2: Strings](https://reader036.vdocuments.us/reader036/viewer/2022083002/558a8c71d8b42a4e548b46c0/html5/thumbnails/2.jpg)
Pre-Defined Functions
• Predefined functions are prewritten by other programmers
• They can be used again and again
• INT() RND()
![Page 3: Strings](https://reader036.vdocuments.us/reader036/viewer/2022083002/558a8c71d8b42a4e548b46c0/html5/thumbnails/3.jpg)
LEFT
Original = “McAlpine is a tube”
leftString = left(original, 8)
leftString = “McAlpine”
![Page 4: Strings](https://reader036.vdocuments.us/reader036/viewer/2022083002/558a8c71d8b42a4e548b46c0/html5/thumbnails/4.jpg)
RIGHT
Original = “McAlpine is a tube”
rightString = right(original, 4)
rightString = “tube”
![Page 5: Strings](https://reader036.vdocuments.us/reader036/viewer/2022083002/558a8c71d8b42a4e548b46c0/html5/thumbnails/5.jpg)
Concatenation leftString = “McAlpine”rightString = “tube”
NewString = leftString & “ “ & rightString
newString = “McAlpine tube”
![Page 6: Strings](https://reader036.vdocuments.us/reader036/viewer/2022083002/558a8c71d8b42a4e548b46c0/html5/thumbnails/6.jpg)
The Program Ask user for
Forename, Surname, DOB, Generate Username
First Initial plus SurnameGenerate Password
First 5 letters of surname plus last four of DOB
Print all info