Anatomy of a computer
Programming languages
Syntax of C++ program
Errors in programming
Algorithms using Pseudocodes/ Flowcharts
THE ANATOMY OF A COMPUTER
Hardware
CPU (central processing unit)
Storage
Peripheral Devices
Software
System Software
Application Software
CPU (CENTRAL PROCESSING UNIT)
heart of the computer
executes one operation at a time
performs program control and data processing
arithmetic operations such as addition,
subtraction, multiplication, and division
STORAGE
Primary memory - memory chips
Random access memory (RAM) (read-write
memory)
Read-only memory (ROM)
Output Devices
Display screen
Speakers
Printers
Input Devices
Keyboard
Mouse
SCHEMATIC DESIGN
PROGRAMMING
Machine Code
Binary Format
Processor Dependent
Define a problem
Design a solution
Translate into a C++ program
Test the C++ program
Debug incase of errors
ANALYZING YOUR FIRST PROGRAM
ERRORS IN PROGRAMMING
Syntax or compile-time error
Run time error
Software Development Process
Develop an algorithm.
What steps must be done?
Correctness
Meets the problem requirements
Produces correct results
Easy to read and understand
Easy to modify
Easy to debug
Efficient
Fast
Requires less memory
MOTIVATION