Download presentation
Presentation is loading. Please wait.
Published byCharles Snow Modified over 8 years ago
1
Chapter Four Common facilities of procedural languages
2
How do different programming languages differ and what do they have in common
3
Assignment Operator = for assigning variables A = hello; B= World; C= a + b; For math calculation we use ==
4
Arithmetic Operations + - / * % Relational Operations =', '>', ' '
5
Boolean Operators 'AND', 'OR', 'NOT'; also known as Logical Operators
6
Boolean Operators
8
Operator order
9
Concatenating Basically, it means taking two strings and putting them together. For example: 'FullName = FirstName + Surname' would be of little use whereas 'FullName = FirstName + ' ' + Surname' is moststrings
10
Extracting parts of a string Most programming languages also have the availability to extract parts of a string from either the left, right of middle Hello World Left LEFT(, ). If the string was 'Hello World!' and then the integer value was 4 then the extract would be 'Hell'.
11
Right RIGHT(, ). If the string was 'Hello World!' and then the integer value was 4 then the extract would be 'rld!'.
12
Middle MID(,, ). If the string was 'Hello World!' and then the integer values were 4 then the extract would be 'o Wo'.
13
Also programming languages are able to: Locating Finding the length of a string Dealing with character sets: Converting from characters into integer Comparing strings: 0-9, a-z, A-Z
14
Facilities Command Line A command line allows the user to type in what they want thus there is no need for clickable items just one function that allows the entry of text data. Notpad++ GUI: Alice Greenfoot?
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.