PROGRAMMING.
A program is a set of coded instructions that can be used to perform certain task on a computer.
Programming involves designing ,coding and testing programs.
TYPES OF PROGRAMMING LEVELS
High level-java, python
Low level-visual basic
PROGRAMMING TERMS
Variable-refers to name of memory location that stores a value that may change during program
execution for example amount paid.
Constant-refers to a variable or memory space whose value does not change for example Pi.
Identifiers-is a unique label of detail item or element of a program.
Operators-
symbols used to manipulate data in statements and they can be arithmetic.
symbol meaning
+ addition
- subtraction
* multiplication
^ Exponent. This raise a value to the power of
another value
/ division
\ Integer division, divides 2 values and returns
integer value part only.
mod Modulus ,it retains the remainder of the integer
division.
LOADING V.B NET
Open Microsoft visual
Open windows form application
DATA TYPES
Data types describe the nature or form of data handled by programs.
Data types can be simple for example integers.
NUMERIC DATA TYPES
INTERGER-used to represent whole numbers ,positive and negative and occupy 2 bytes of
memory.
Decimal values will be rounded to the nearest whole number.
Values accepted range from -32 768 to +32 767.
Default value is 0.
DOUBLE-stores double precision floating point number with decimal places ,occupy 8 bits. Longer
than single.
SINGLE-stores a single precision floating point number with decimal places. Default value is (0) zero
and occupy 4 bits.
Real-represent numbers with decimal point values for example [Link] be used to represent values.
Byte-store 8 bit unsigned data value ranging from [Link] to store binary values.
Date-represents date and time value and occupy 8 bytes as using this format dd/mm/yyyy.
Currency-occupy 8 bytes with (0) zero as default value used to handle monetary values and support
up to 4 digits to the right and 15 digits to the left of decimal point.
Long-short for integer and default value is (0) zero. Occupies 4 bytes from -2 147 483 648 to -2 147 483
647.