PPS ch1
PPS ch1
PPS ch1
• The word computer comes from the word “compute”, which means, “to
calculate”.
• A computer is an electronic device that can perform arithmetic
operations at high speed and it can process data, pictures, sound and
graphics.
• It can solve highly complicated problems quickly and accurately.
• Speed
• It can calculate millions of expression within a fraction of second.
• Storage
• It can store large amount of data using various storage devices.
• Accuracy
• It can perform the computations at very high speed without any
ADVANTAGES mistake.
• Reliability
OF COMPUTER • The information stored in computer is available after years in same
form. It works 24 hours without any problem as it does not feel
tiredness.
• Automation
• Once the task is created in computer, it can be repeatedly
performed again by a single click whenever we want.
• Multitasking
• It can perform more than one tasks/operations simultaneously.
• Lake of intelligence
• It can not think while doing work.
• It does not have natural intelligence.
DISADVANTAG • It can not think about properness, correctness or
effect of work it is doing.
ES OF
• Unable to correct mistake
COMPUTER • It can not correct mistake by itself.
• So if we provide wrong or incorrect data then it
produces wrong result or perform wrong
calculations.
BLOCK • It is a pictorial representation of a computer
which shows how it works inside.
DIAGRAM OF • It shows how computer works from
COMPUTER feeding/inputting the data to getting the result.
BLOCK DIAGRAM OF COMPUTER
CENTRAL PROCESSING
UNIT
CONTROL UNIT
PRIMARY MEMORY
(RAM, ROM etc…)
SECONDARY MEMORY
(Hard disk, Pen drive etc…)
• The devices used to enter data in to computer
system are called input devices.
BLOCK • It converts human understandable input to
DIAGRAM OF computer controllable data.
COMPUTER • CPU accepts information from user through
input devices.
(INPUT
• Examples: Mouse, Keyboard, Touch screen,
SECTION) Joystick etc…
BLOCK DIAGRAM OF
COMPUTER (OUTPUT
SECTION)
• The devices used to send the information to the
outside world from the computer is called output
devices.
• It converts data stored in 1s and 0s in computer
to human understandable information.
• Examples: Monitor, Printer, Plotter, Speakers etc…
BLOCK DIAGRAM OF COMPUTER (CENTRAL
PROCESSING UNIT (CPU))
• Operating system
• It controls hardware as well as interacts with users, and provides
different services to user.
• It is a bridge between computer hardware and user.
• Examples: Windows XP, Linux, UNIX, etc…
• System support software
• It makes working of hardware more efficiently.
• For example drivers of the I/O devices or routine for socket
programming, etc…
• System development software
• It provides programming development environment to
programmers.
• Example: Editor, pre-processor, compiler, interpreter, loader, etc…
CATEGORIES OF APPLICATION SOFTWARE
Subroutine Arrows
NUMBER IS POSITIVE OR NEGATIVE
Step 1: Read no.
Start
Step 2: If no is greater than equal zero, go
to step 4.
Read no Step 3: Print no is a negative number, go
to step 5.
True False Step 4: Print no is a positive number.
Is no >= 0
Step 5: Stop.
Print no is Print no is
Positive Negative
Stop
NUMBER IS ODD OR EVEN
Step 1: Read no.
Start
Step 2: If no mod 2 = 0, go to step 4.
Step 3: Print no is a odd, go to step 5.
Read no
Step 4: Print no is a even.
Step 5: Stop.
True False
Is no % 2 = 0
Stop
LARGEST NUMBER FROM 2 NUMBERS
Step 1: Read a, b.
Start
Step 2: If a>b, go to step 4.
Step 3: Print b is largest number, go to
Read a, b step 5.
Step 4: Print a is largest number.
True False Step 5: Stop.
Is a>b
Stop
LARGEST NUMBER FROM 3 NUMBERS (FLOWCHART)
Start
Read a, b, c
True False
Is a>b
Stop
•Step 1: Read a, b, c.
•Step 2: If a>b, go to step 5.
•Step 3: If b>c, go to step 8.
LARGEST •Step 4: Print c is largest number, go to step 9.
NUMBER FROM •Step 5: If a>c, go to step 7.
3 NUMBERS •Step 6: Print c is largest number, go to step 9.
(ALGORITHM) •Step 7: Print a is largest number, go to step 9.
•Step 8: Print b is largest number.
•Step 9: Stop.
PRINT 1 TO 10
Step 1: Initialize a to 1.
Start
Step 2: Print a.
Step 3: Repeat step 2 until a<=10.
a=1
Step 3.1: a=a+1.
Step 4: Stop.
a=a+1 Print a
True False
Is a<=10
Stop