Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword
Like this
0Activity
0 of .
Results for:
No results containing your search query
P. 1
CS2 - 1Qtr Reviewer

CS2 - 1Qtr Reviewer

Ratings: (0)|Views: 3 |Likes:
Published by Pat Rivera

More info:

Published by: Pat Rivera on Aug 02, 2011
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as DOCX, PDF, TXT or read online from Scribd
See more
See less

08/02/2011

pdf

text

original

 
Computer Science 1 //
1
st
Quarter
SY 2011 - 2012
 
© PAT RIVERA
Computer
- programmablemachine which can receive, storeand process data
o
 
Classified accordingto: Size Processing power Cost Usage
o
 
Classifications: Supercomputer-
 
Governments-
 
Meteorology-
 
Hollywood-
 
Banking Mainframe-
 
Big hospitals-
 
Security Systems-
 
Internet Servers Mid-rangeComputers Microcomputers
M
ain ComponentsSoftware
o
 
O
perating System -manages computersresources to theprograms running- firstto run (booting),last to terminate(shutting down)
o
 
Program - series of instructions Arithmetic Logic Fetch Data Send Data
o
 
Data Raw (unprocessed) Information
Programming Language
o
 
High-level Language C++ Java Python PHP Java Script Ruby C
O
B
O
L (CommonBusiness
O
rientedLanguage)
o
 
Low-LevelLanguages -Machine Language(Binary NumberSystem)
o
 
Assembly Language
Program Design Process
INPUTProcessorMainMemor
O
UTPU 
 
Computer Science 1 //
1
st
Quarter
SY 2011 - 2012
 
© PAT RIVERA
PR
O
BLEM IMPLEMENTATI
O
NStartProblem DefinitionAlorithm DesinDesktoEncodin to C++ Testin/DebuinWorkin ProramSource CodeComiler
O
bject Code
O
bect Codefor
O
therLinkerComlete Machine
Preparing a C++ Program forRunningNumber Systems
- collection of numbers to represent quantitywith a defined set of equations
o
 
Rational
o
 
Roman
o
 
Complex
Base Systems
- way torepresent larger numbers
o
 
Binary (Base 2) 0,1
o
 
O
ctal (Base 8) 0, 1, 2, 3, 4, 5, 6, 7
o
 
Decimal (Base 10) 0, 1, 2, 3, 4, 5, 6,7, 8, 9
o
 
Hexadecimal (Base16) 0, 1, 2, 3, 4, 5, 6,7, 8, 9, A, B, C, D, E,F
M
emory Size
o
 
Binary digit = 1 bit
o
 
8 bits = 1 Byte(minimum numberof bits to representall characters on akeyboard) b = bit/s B = Byte/s
o
 
1024 Bytes = 1 KB
o
 
1024 KB = 1 MB
o
 
1024 MB = 1 GB
Algorithm
- Solution- Systematicprocedure that produces - in afinite number of steps - theanswer to a question or thesolution of a problem SystematicProcedure - step by step Finite Number of Steps - will terminateeventually- Problem-solvingtool
o
 
Concatenation - combining(adding) using +
 
Computer Science 1 //
1
st
Quarter
SY 2011 - 2012
 
© PAT RIVERA
o
 
Pseudocode - textualrepresentation
o
 
Flowchart - visualrepresentation of data flowand processing, used priorto codingTerminal - Beginning/Endof an Algorithm Initialization - Declaring &Initializing Variable; AllocatingMemory SpaceProcess/Computation/
O
peration - To show processing ormathematical computations Input/
O
utput - Put datafrom/to the user Condition - DecisionMaking; Answerable by Yesor No only Connector (
O
n-Page &
O
ff-Page) - Connect differentparts of the program Comments - Used to giveto additional information toI/
O
, Process or Conditions Flow Line - Indicateswhich step is next
o
 
Rules: Terminal & Connector:1 Flow Line entering; 1Flow Line Leaving I/
O
, Process, Conditions:1 Flow Line Entering I/
O
& Process: 1 Flow LineLeaving Conditions: 2 Flow LinesLeaving
o
 
Advantages: Easier Analysis Documentation Helps in Coding &Debugging International, DifferentFields
o
 
Disadvantages: Difficult to RepresentComplex Logic Alteration andReproduction is tedious &messy
Systems/SoftwareDevelopment Life Cycle

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->