Please enable JavaScript.
Coggle requires JavaScript to display documents.
chapter 15 (15.3 Data types (characters (the building blocks of words…
chapter 15
15.3 Data types
characters
the building blocks of words (strings) of text are characters: for example, letters of the alphabet or the numerals 0 to 9
strings
strings are sequences of characters. computer programs frequently deal with character strings to hold data such as names, addresses or telephone numbers
integers
integers are whole numbers, either positive, negative or zero. The number of bytes used to represent an integer determines the maximum size of the integer possible.
integers represented by one byte can hold 2 to the power of 8, or 256 different numbers.
real numbers
Real numbers, also called floating point numbers, are what we usually call decimals, and may be either positive or negative.
-
15.5 Functions
-
Output functions
visual basic: MsgBox ("you birthdate is" , BirthDate)
mathematical functions
most languages have a variety of mathematical functions for such things as:
trigonometry
random number generation
logarithmic calculations
squares and square roots
rounding numbers
finding statistical value (such as mean and average)
-
-
15.6 Algorithms
flow charts
we have seen already how flowcharts are a visual or graphical representation of the flow of logic in a problem solution.