The process of breaking down a complex problem into smaller, more manageable sub-problems.
What is decomposition?
Provide a visual representation of the program logic, making it easier to understand the sequence of steps, decisions, and data flow.
What is a flowchart?
It may not have all the features and functionalities of a specific programming language.
What is pseudocode?
They are symbols or words used to perform operations on variables or values.
What are Operators?
When breaking down a problem, it's crucial to take into account the __________ between the smaller components
What is the relationship/interconnection?
Statements in this symbol perform calculations
What is the rectangle?
The following code determines this.
SET age = user_input("Enter your age:")
IF age >= 18 THEN
PRINT "You are eligible to vote!"
ELSE
PRINT "You are not yet eligible to vote."
END IF
What is, if a person is eligible to vote?
It is a logical operator that is used to compare two numbers and is represented either by != or <>
What is NOT EQUAL to?
It is the first step that needs to be taken when decomposing a problem.
What is the first step in problem-solving through decomposition?
Represents a decision point with different paths based on conditions.
What is the diamond?
It repeats a set of instructions until a certain condition is met.
What is a loop or iteration?
They are used to combine multiple conditions in a decision-making process, such as AND, OR, and NOT.
What are logical operators?
List the problem-solving steps for:
A student in your class complains that their school laptop is running extremely slow. It takes a long time to open programs, web browsing feels sluggish, and tasks like saving files seem delayed.
What is
(1) Identify symptoms,
(2) Research potential causes,
(3) Isolate the faulty component - Check CPU, memory, and disk usage,
(4) Develop a solution (fix or replace),
(5) Test and verify the solution.
It is represented by a parallelogram.
What is input/output?
SET sum = number1 + number2
PRINT "The sum is:", sum.
The code snippet is a representation of this....
What is calculating the sum of two numbers?
It is used to illustrate how the NOT, AND and OR operators are applied.
What is a truth tables?
Planning a birthday party is an example of using decomposition in everyday life, where tasks like sending invitations, buying decorations, and preparing food can be broken down into __________ steps.
What are smaller steps?
Show the flow of data and execution between symbols.
What are arrows/flow lines?
It allows for decisions to be made based on specific conditions, directing the flow of the problem-solving process accordingly.
What is a conditional Construct? OR
What is an If-Then or If-Then-Else Construct?
The three main categories of operators used in programming languages
What are Arithmetic operators ( +, -, *, / ) for mathematical calculations; Logical operators ( AND, OR, NOT ) for evaluating conditions (true/false) and Relational operators ( ==, !=, <, >, <=, >= ) for comparing values.