Professional Documents
Culture Documents
Comprog 1 Reviewer
Comprog 1 Reviewer
PROBLEM – something the result of which is not readily MODULO OPERATOR / remainder operator (%) - returns the
available. remainder when the first operand is divided by the second
operand.
Law of Equifinality – same goal can be achieved through
different courses of action and a variety of paths. NATURAL LANGUAGE – languages that humans speak
MACHINE LANGUAGE – composed of binary digits that
ALGORITHMS – relates to the name of mathematician Al-
computers can understand.
khowarizmi, which means a procedure or a technique.
PROGRAMMING LANGUAGE - Set of commands, instructions,
A set of steps that generates a finite sequence of and other syntax use to create a software program.
operations which leads to the solution of a given
problem. PROGRAM – organized list of instructions that causes
computer to behave in a predetermined manner.
CHARACTERISTICS OF ALGORITHMS
PYTHON – conceptualized by Guido van Rossum
Input – algorithm may or may not require input
Started in 1989
Output – each algorithm is expected to produce at least one
Named after the British TV show Monty Python
result
Python 1: 1994, Python 2:2000, Python 3:2008
Definiteness – Each instruction must be clear and
- A high level programming language with applications in
unambiguous.
numerous areas.
Finiteness – If the instructions of an algorithm are executed,
- An interpreted language, which means that each line is
the algorithm should terminate after finite number of steps
executed as it is entered.
FLOWCHART – is a pictorial or diagrammatic representation of
Editor- where you type your code
an algorithm so that it can be easier and quicker to
understand. Code- commands or instructions written in a particular
programming language
SYSTEM FLOWCHART – they contain solutions of many
problem units together that are closely related to each Interpreter- prompts the computer to execute or run your
other and interact with each other to achieve a goal. program
PROGRAM FLOWCHART – flowcharting symbols used
mirror computer programs Integrated Development Environment (IDE) – helps create
They contain steps to solve a problem to achieve a programs and applications in diff programming languages.
specific result. Interpreter – a program that run scripts written in an
Any error can be easier to detect because it is a interpreted language.
visual representation of the logic of a program
Indention – indicates groups or blocks of code
BASIC OPERATORS
TYPES OF ERRORS: