To be able to formulate instructions for the computer, you first need to understand the component of a computer and how it functions.
One of the most important parts of the computer is the central processing unit or the CPU. The CPU may consist of a single chip or a series of integrated circuits. The CPU interprets and executes program instructions. It is capable of synchronous arithmetic operations such as addition, multiplication, subtraction and division. It is able to locate data from storage devices,
A computer keeps data and applications in two types of storage – primary storage and secondary storage. The primary storage or the random-access memory or RAM, can read and write stored data fast. Although the access speed from RAM modules is fast it is expensive and has no retention of stored data after computer is turned off.
The secondary storage or removable devices offers a less expensive storage device that is capable of data retention. A traditional hard disk is composed of rotating magnetic plates which can detect magnetic flux variations. Recent developments introduced the solid-state storage devices.