FOP: Module 1

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/33

encourage image

There's no tags or description

Looks like no tags are added yet.

34 Terms

1
New cards

Computer Program

list of instructions that directs the computer on its operations

2
New cards

Programming

the act of developing a computer program

3
New cards

Programmer

the person who develops computer programs

4
New cards

Steps in Program Planning and Development

  1. Problem Analysis

  2. Setting up the Algorithm

  3. Coding

  4. Encoding

  5. Running, Testing, Debugging

  6. Documentation


5
New cards
  1. Problem Analysis


  • the initial phase where you define and understand the problem you’re trying to solve

  • involves analyzing the requirements, constraints, and objectives of the problem


6
New cards
  1. Setting up the Algorithm


  • after understanding the problem, you need to design an algorithm

  • involves breaking down the problem into smaller, manageable tasks


7
New cards
  1. Coding


  • translating your algorithm into actual python code

  • write the instructions that the computer will execute

  • involves using python syntax to implement the logic designed


8
New cards
  1. Encoding


  • process of saving your python code into a file with appropriate extension (.py)

  • this step makes your code persistent, allowing you to reuse or share it


9
New cards
  1. Running, Testing, Debugging


  • run the code to see if it works correctly

  • test different inputs to your program and verify if the output matches your expectations

  • debug code to identify and fix issues


10
New cards
  1. Documentation


  • practice of creating explanatory materials that accompany your code

  • includes adding comments, writing comprehensive descriptions, and providing usage examples


11
New cards

Algorithm

finite set of instructions that specify a sequence of operations to be carried out in order to solve a problem

12
New cards

Properties of an Algorithm

  • Unambiguous

  • Input

  • Feasible

  • Finiteness

  • Output

  • Independent


13
New cards

Unambiguous

should be clear and must lead to only one meaning

14
New cards

Input

should have 0 or more well-defined inputs

15
New cards

Feasible

should be feasible with the available resources

16
New cards

Finiteness

must terminate after a finite number of steps

17
New cards

Output

should have 1 or more well-defined outputs and should match the described output

18
New cards

Independent

step-by-step instructions should be independent of any programming code

19
New cards

Flowchart

diagram representing the logical sequence in which a combination of steps or operations is to be performed
(graphical representation of an algorithm)

20
New cards

Terminal

CIRCLE - start/end

21
New cards

Input/Output

PARALLELOGRAM - input/output operations

22
New cards

Process/Operation

RECTANGLE - for processing and computations

23
New cards

Flow Lines

LINES - connect one flowchart symbol to another

24
New cards

Flow Direction Indicator

ARROW HEADS - show direction/flow

25
New cards

Preparation/Initialization

HEXAGON - initialization of values

26
New cards

Decision

DIAMOND - yes/no or true/false

27
New cards

On-Page Connector

CIRCLE - connect one flowcharting symbol to another on the same page; comes in pairs

28
New cards

Off-Page Connector

HOME PLATE SYMBOL - connect the flowcharting symbol to another on a different page; comes in pairs

29
New cards

Basic Control Structures

  1. Sequence Structure

  2. Selection Structure

  3. Repetition Structure (Loop)

  4. Combining Structures


30
New cards
Sequence Structure
A control structure that executes instructions step-by-step in exact order without skipping or branching.
31
New cards
Selection Structure
A control structure that evaluates a condition and executes different execution paths based on the result.
32
New cards
Repetition Structure (Loop)
A control structure that executes a block of steps repeatedly while a condition is true.
33
New cards

Combining Structure

Sequence, Selection, and Repetition can be combined to solve complex problems.

Real programs use all three together—steps flow in order, branch on conditions, and loop until a goal is reached.

34
New cards
Tracing (Algorithm)
Manually following a flowchart or algorithm step-by-step to track variable values and decision outcomes.