0% found this document useful (0 votes)
3 views2 pages

Form 2 Notes Programming

The document provides an overview of programming, defining it as a set of instructions for computers, and outlines the programming process which includes designing, coding, and testing. It categorizes programming into high-level and low-level types, explains key programming terms such as variables and constants, and details various data types and their characteristics. Additionally, it describes numeric data types, their memory usage, and value ranges.

Uploaded by

thabobeviemponda
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views2 pages

Form 2 Notes Programming

The document provides an overview of programming, defining it as a set of instructions for computers, and outlines the programming process which includes designing, coding, and testing. It categorizes programming into high-level and low-level types, explains key programming terms such as variables and constants, and details various data types and their characteristics. Additionally, it describes numeric data types, their memory usage, and value ranges.

Uploaded by

thabobeviemponda
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

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.

You might also like