Lesson 1: Computer System Components: The Relationship of The Components Is Shown Below
Lesson 1: Computer System Components: The Relationship of The Components Is Shown Below
Integrated Circuit attached on the mother board that normally has a dimension of 1” x
1”, though small in size, its functions in the computer system is enormous because it
functions as the brain of the computer.
The computer brain (C.P.U.) has different components that work cooperatively to
Execute instructions. These components are:
Control Unit (C.U.) – The command center of the processor. It has three primary
functions: read and interpret instructions, direct flow of operations of computer
and hardware devices and, control the flow of instructions and data.
Arithmetic and Logic Unit (A.L.U.) – the most significant component inside the
C.P.U. for our learning of the “behind the scene”. It is the chief of operations of
the computer. A.L.U. performs two major operations in processing data: all
mathematical computations (addition, subtraction, multiplication, and division)
and all logical operations(comparisons of data such as; greater than, less than,
equal, greater than or equal to, and less than or equal to). These processing are
the main concentration of how a computer process data, and is the foundation of
the “behind the scene”.
Behind the scene in action
As we have read the blue print of behind the scene, it is now clear why a
computer is defined as an electronic device that can accept, process, and store vast
amount of data to produce useful information. Let us now zero in on behind the scene
and understand its language of ABC.
When ideas are converted into a computer program, it is sent to the CPU
processing. However, The CPU cannot understand the code (computer program) and will
not do anything because of language incompatibility. For the CPU to understand the
code, a language translator is needed. The language translator software is called compiler
or interpreter. The role of compiler is to transform the code into a machine language
(series of 1’s and 0’s to represent ON and OFF states of the computer devices. It is also
the representation of the digital electronic charges inside the computer). Once the code is
compiled, it changes its form from computer program with strict syntax to a readable
machine language that can be interpreted by the CPU. CPU then executes the
instructions and performs the tasks.
We can now agree that code is the gasoline that powers the computer. It is now
the role of behind the scene to translate ideas into a form that is friendlier and easier to
understand and illustrate. Behind the scene can be illustrated by the use of flow chart.
Flowchart is a modeling tool used to illustrate data, instructions, process, information,
and workflow by the use of specialized symbols. In the world of computers we can
simply say that flow chart is a step-by-step graphical representation of a solution. The
basic symbols used in programming are presented in Table 1.
The next most important thing to know is how data are represented in the
program. Recall that data are entered into the program using a keyboard or mouse, and
the data entered for processing are saved on a certain location. This location is called
variable. Variable is a primary storage location that can assume different numeric or
alphanumeric values. It is also a memory space allocated by a computer user for
processing and storing data.
Date type is the type of the data being processed in the program. However,
data type is language specific and may have different representations. Table 2 shows
the basic data types with their descriptions
The standard naming convention for variables used without any biases to any
Programming language are presented through its characteristics
Must be descriptive and significant to the data, problem and its solution. It
should be descriptive enough to identify the process or data it is referring to.
Combinations of alphanumeric characters (alphabet, numbers and special
characters) can be used as a variable name provided that it starts with an
alphabet.
Although the length of variable name can have 256 characters, the lesser the
number of characters the more efficient the program is.
Examples:
Class_size tuition intl income
sum char3 f_name answer
net_income l_name total grand_total
4. Create a flowchart that will arrange the values of A, B and C in ascending order
where Variable A will gets the lowest value and variable C gets the highest value. The
values of the variables are: A = 15, B = 10 and C = 20.
5. Create a flowchart that will arrange the values of A,B,C and D in highest to the
Lowest order where variable A gets the highest value and variable D gets the lowest
value. The values of the variables are: A = 3, B = 9, C = 12 and D = 6
Solution:
B;
2) Assign number 5 to variable A; and
3) Assure that variable B has no value.