Lecture01 IntroductionToComputerProgramming
Lecture01 IntroductionToComputerProgramming
Computer Programming 1
LECTURE 01
CCC101 - Computer Programming 1
Jennifer Joyce M. Montemayor
Major Components
1. Hardware
2. Software
- Secondary Memory
- Input Devices
- Output Devices
Main Memory
Secondary Memory
‣ either a 0 or a 1
fetch
execute decode
carry out the instruction determine what the instruction is
Input Device
Output Device
‣ peripheral devices that receives data from the computer used for
observing the results of computation
Program
Systems Software
‣ programs that are needed to keep all the hardware and applications software running
together smoothly
Compiler
Programming Language
‣ like human languages each has it’s own syntax and grammar
High-level Language
‣ used to write programs that are independent of the CPU on which they will
be executed
Semantics
Steps,
1. Problem De nition
2. Problem Analysis
e.g
‣ list of names
Debugging
‣ the compiler will detect the error and the program won’t compile
‣ the programmer won’t be able to form an executable program that a user can’t run until
the error is xed
Runtime Errors
‣ occurs when the program directs the computer to perform an illegal operation e.g
division by zero
Logic Error
Gabe Newell
Founder and President, Valve