Computer Programming

Computer programming is a process that leads from an original formulation of a computing problem to executable computer programs. Programming involves activities such as analysis, developing understanding, generating algorithms, verification of requirements of algorithms including their correctness and resources consumption, and implementation of algorithms in a target programming language. The purpose of programming is to… Continue reading “Computer Programming”

High-Level Languages

High-level languages are a major advancement in programming languages. High-level languages are much easier to use than assembly or machine languages, because they are designed to use a more English-like syntax. Some examples of high-level language statements are: (a) total = 1 + 3, and (b) name = “Ken”. High-level languages promote platform independency, i.e.,… Continue reading “High-Level Languages”

Assembly Language

Assembly language is slightly more advanced than machine language, and it simplifies a programmer’s job by implementing the use of mnemonics, instead of 0s and 1s. Mnemonics are memory aids which serve as alphabetic abbreviations for computer instructions. There are a few mnemonics which are common amongst various assembly languages. ADD, and MUL, are a… Continue reading “Assembly Language”

Central Processing Unit

The central processing unit, more commonly referred to as the processor, is the brain behind the computer. There are three primary components that make up the central processing unit (CPU). These components carry out the instructions that allow the computer to function. Arithmetic Logic Unit The Arithmetic Logic Unit (ALU) contains the electrical circuits that… Continue reading “Central Processing Unit”

Control Structures

All computer programs are written in one or more of three basic control (logic) structures. These control structures are: (a) sequence, (b) selection, and (c) repetition. Control structures control a program’s flow of logic. Sequence Structure The sequence structure is used in every computer program. This structure instructs the computer to process instructions one-by-one. An… Continue reading “Control Structures”

Machine Language

All data in a modern-day computer is represented by microscopic, 2-state switches. These switches can either be on, or off; there are no other existing states for these switches. These switches are called transistors. When the switch is in the off-state, represented by 02, the circuit is open, and there is no power flowing through… Continue reading “Machine Language”