





























Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!






























Unit I
1.1. Problem-solving and
computational thinking
1.2. Programming Paradigm -
Structural Programming and
Object-Oriented Programming
1.3. Algorithms,
pseudocode and
flowcharts
1.4. Python environment,
running scripts, basic
input/output
1.5. Debugging mindset
(reading errors, using
print/debug tools)
1.Decomposition
4. Algorithmic
Design
Breaking down a complex problem
into smaller, manageable sub-
problems.
Developing a step-by-step rule or
formula to solve the problem.
3. Abstraction
Focusing only on the important details
and filtering out unnecessary
information..
2. Pattern
Recognition
Identifying similarities or trends
within the problem or past
problems.
Computational thinking is a method of breaking down complex problems into
smaller, manageable steps that a computer can understand and execute
●
●
●
Concept Overview
Example
Algorithms turn ideas into
clear steps and solutions
into reality.
To provide
a straightforward
explanation of how it
works without getting
into too technical.
5
To find a solution for
the problem.
1
To understand
the core idea behind
a problem.
3
To understand the flow
of the problem.
2
To break down a
complex problem into
smaller and more
manageable steps.
4
What is Pseudocode?
Pseudocode is a simple, human-readable way to
describe the steps of an algorithm without using the
strict syntax of any programming language.
Why Used Pseudocode?
Easy to Understand
Focuses on logic, not syntax
Helps plan programs
before coding
Makes it easier to
explain algorithms to
others
Key Feature
Examples
Write an algorithm to find the average of any two numbers
entered by the user and display the result.
Solution
Activity 2 - Multiplying Two Numbers
Solution
Write an algorithm to
multiply any two
numbers and display
the result.
Solution
Write an algorithm in your notebook
to find the perimeter of a rectangle
and display the perimeter.
Activity 5 - Eligibility for voting
Write an algorithm in your notebook
to check whether a person is eligible
to cast a vote using the following
criteria:
1.If the age is 18 and above, then
display a message ‘Eligible to vote’
2.Otherwise display a message, ‘Not
eligible to vote.’
Solution
Step Algorithm
Solution
Write an algorithm to find the
greatest of two numbers.
2 Read any two numbers a, b
3 Check if a>b, then go to step 4
4 Display “a is greater than b”
5 Otherwise, Display “b is greater than a”
Practice 2 - Pass or Fail
Solution
Write an algorithm that prompts the
user to input their exam marks and
determines whether they have passed
or failed. The pass mark is 40 out of