Professional Documents
Culture Documents
ARGENTE
To know the logical structure of digital
computer
To know the different classification of
computers
To know the key types of software
A computer is a general purpose device that
can be programmed to carry out a set of
arithmetic or logical operations.
It has the ability to store, retrieve and process
data.
The two principal characteristics of a
computer are: it responds to a specific set of
instructions in a well defined manner and it
can execute a pre-recorded list of instructions
called a program.
HARDWARE
▪ hardware is any part of computer that has a
physical structure
SOFTWARE
▪ is any set of instructions that tells the
hardware what to do
Input : Keyboard, Mouse
System unit:
▪ Random Access Memory (RAM)
▪ Central Processing Unit (CPU)
Output: Monitor, Printer
Secondary Storage: Disk Drive
Instructions for the hardware.
▪ Actions to be performed
A set of instructions is called a program.
▪ Driving force behind the computer
▪ Without a program – What is a computer?
▪ Collection of Useless Hardware
2 purposes:
▪ Tell the computer what to do
▪ Tell other people what we want the computer to do.
CENTRAL PROCESSING UNIT
CONTROL ARITHMETIC/
UNIT LOGICAL UNIT
FILES
▪ is the “receiving" section of the computer.
▪ It obtains information from various input
devices and places this information at the
disposal of the other units so that the
information may be processed.
▪ is the "shipping" section of the computer
▪ It takes information that has been
processed by the computer and places it on
various output devices to make the
information available for use outside the
computer.
It retains the information that has been
entered through the input unit so that it may
be made immediately available for
processing when it is needed
The memory unit also retains processed
information until that information can be
placed on output devices by the output unit.
It is often called memory or physical
memory.
is the "administrative" section of the computer.
It is the computers coordinator and is
responsible for supervising the operation of the
other sections.
It tells the input unit when information should be
read into the memory unit, tells the ALU when
information from the memory unit should be
used in calculations and tells the output unit
when to send information from the memory unit
to certain output devices.
a. Arithmetic and Logic Unit - is the
“manufacturing" section of the
computer. It is responsible for
performing calculations. It contains
decision mechanisms that allow the
computer to complete tasks.
2. CELLULAR TELEPHONES
is a web-based telephone having features of analog
and digital devices. It is also referred to as Smart
Phone. In addition to basic phone capabilities, a
cellular phone also provides the functions to receive
and send e-mails & faxes and to access the Internet.
APPLICATION SYSTEM
SOFTWARE SOFTWARE
❑ Applications software (also
known as "apps') are programs
written to accomplish particular
tasks.
❑ There are many different types
of applications software.
❑ Standard applications products
are generally purchased from
an outside source.
❑ Some applications that are
unique to the organization are
generally developed internally.
❑ Support/System software provides
computing environment that is
easy and efficient for humans to
use
❑ It enables applications programs to
be carried out. It ensures that
computer hardware and software
are used efficiently.
❑ The most important type of
support/system software is the
Operating System.
❑ Support/system software are
almost always purchased from a
hardware vendor or software
house.
PREPARED BY: ENGR. KAREN M. ARGENTE
To know the components of a file
To know the number system
To know other methods and computation in
number system
When we type some letters or words, the
computer translates them in numbers as
computers can understand only numbers.
A computer can understand positional
number system where there are only a few
symbols called digits and these symbols
represent different values depending on the
position they occupy in the number.
BIT - The smallest unit of physical data is a bit. A bit is
represented by 0 or 1
BYTE:- Byte is a group of binary digits which contains 8
binary digits.
WORD - A group of bits considered as an entity.
FILE - Collection of records
Binary Number System
Base 2. Digits used: 0,1
Hexadecimal
STEP NUMBER DECIMAL NUMBER
VALUE
128 64 32 16 8 4 2 1 •The largest value that can be stored in a byte with eight bits is 255
POWER OF 2
27 26 25 24 23 22 21 20
VALUE 32,768 16,384 8,192 4,096 2,048 1,024 512 256
POWER OF 2 215 214 213 212 211 210 29 28 •Two bytes are used for larger numbers; maximum value is 65535
c1 c1
1 1 1 0 0
+ 1 1 1 0 1
1 1 1 0 0 1
1 1 1 0 0 1
SUBTRACTION DIVISION
0 - 0 = 0 1
1 - 0 = 1 11 1 0 0 1 1 0 1
1 - 1 = 0 -
0 - 1 = 1 borrow 1 -
-
1 1 1 0
0 0 1 1 -
1 0 1 1
0 1 0 1
1 1 0 0 1 0 1 0
- 1 0 0 1 1 0 1 1
0 0 1 0 1 1 1 1
OCTAL HEXADECIMAL
1 1
2 7 4 1 1 1 1
+ 7 2 4 A B C 1 2 3
1 2 2 0 + 4 5 6 D E F
F 1 2 F 1 2
ANS 1 2 2 0
F 1 2 F 1 2 ANS
DECIMAL TO BINARY BINARY TO DECIMAL
DECIMAL NUMBER 29 BINARY NUMBER 11101
a. Pseudo-coding
b. Flowcharting
writing the commands in somewhat broken
English
drawing a diagram (a.k.a flowchart) showing
the operations and sequence of execution of
computer dictions and data flow
PROGRAMMING
A letter/word that serves as
temporary storage that can
represent any value
Programming problem
Create a program that will display the sum of 2 numbers inputted by the user
ALGORITHM
1.
Declare 3 variables,2 for
Addends and 1 for sum
2.
Let the user input the
addends.
3.
Perform the addition
between the addends and
assign it to the sum
4.
Display the sum
PSEUDOCODE For this reason,
programmers find it helpful
Since we all know that each programming language has to write their programs in
strict rules, known as syntax, that the programmer must pseudocode (pronounced
follow when writing a program. “sue doe code”) before they
write it in the actual code of
If the programmer writes code that violates these rules, a a programming language.
syntax error will result and the program cannot be
compiled or executed.
Let A=0
Print “Please input a number.”
Input A
If 0<A AND A<10, then
output “blue”
else if 10<A AND A<20,then
output “red”
else if 20<A AND A<30, then
output “green”
else output “That is not a correct color option”
End if
Example 3
Create a program that will display PASS if the average is greater than or equal to 50 otherwise will
display FAIL.
Let
num1=0,num2=0,num3=0,num4=0,ave=0
Input num1, num2, num3, num4
Ave= (num1+num2+num3+num4)/4
If (Ave>=50)then
Print “PASS”
else
Print “FAIL”
endif
Terminal/Terminator is used to
indicate the beginning and
ending points of a flowchart.
(Start/Stop: Begin/End)
Input/Output is used to
indicate where data are entered
into the flowchart and also
where results are printed.
Process is used to specify
some action to be taken. An
arithmetic or replacement
operation might be specified.
Note: Flowcharting symbols and techniques can vary from one book to another, or from
one software package to another
Given three numbers A,B,C, draw a flowchart that computes and
prints out the sum, the average and the product of these values
A,B,C
SUM=A+B+C
Ave=Sum/3
Prod=A*B*C
Sum, Ave,
Prod END
Given a number N, draw a flowchart that determines if the
value is positive or negative
START
T/Y
N>=O Val = “Positive”
F/N
Val=“Negative”
Val
END
Given two numbers, draw a flowchart that determines
and displays the larger value
START
X,Y
T/Y
X>Y Larger= X
F/N
Larger= Y
Larger
END
Display numbers from 1 to 10
START
NUM=1
IF
F/N
NUM<=10 END
T/Y
LOOP NUM
NUM=NUM+1
Display odd numbers from 1 to 10
1,3,5,7,9
START
NUM=1
IF
F/N
NUM<=10 END
T/Y
LOOP NUM
NUM=NUM+2
Display even numbers from 1 to 10
2,4,6,8,10
START
NUM=2
IF
F/N
NUM<=10 END
T/Y
LOOP NUM
NUM=NUM+2