Posts

Showing posts from January, 2018

Data Types-Doug's work

Data Types A data type is a data storage format that can contain a specific type or range of values. Boolean: a Boolean data type is a value that is either true or false. By default the Boolean data type is set to false. A Boolean operator or logical operator consists of operators such as AND, OR, NOT, NOR, NAND and XOR, and are used with conditional statements. The Boolean data type is the smallest data type as its memory size is 1bit. Integer: an integer is a whole number that can be a positive, negative or zero. Unlike floating point numbers, integers cannot have decimal places. Integers are a commonly used data type in computer programming. When a number is being used, such as within a four loop or while loop an integer is used. An integers memory size is 2 bytes but can sometimes be 4 bytes. String: most programming languages have a data type called a data string which is used for data values that are made up of ordered sequences of characters. A string can con...