Problem Making a kite
1:
Input : ………………………………………………………………………………………………………………………………………………………………
Process : ………………………………………………………………………………………………………………………………………………………………
Output : ………………………………………………………………………………………………………………………………………………………………
Problem Dividing 100 toffees among 20 people.
2:
Input : ………………………………………………………………………………………………………………………………………………………………
Process : ………………………………………………………………………………………………………………………………………………………………
Output : ………………………………………………………………………………………………………………………………………………………………
Problem Finding the sum of three
3: numbers
Input : ………………………………………………………………………………………………………………………………………………………………
Process : ………………………………………………………………………………………………………………………………………………………………
Output : ………………………………………………………………………………………………………………………………………………………………
Problem Finding the area of a
4: rectangle
Input : ………………………………………………………………………………………………………………………………………………………………
Process : ………………………………………………………………………………………………………………………………………………………………
Output : ………………………………………………………………………………………………………………………………………………………………
Problem Finding the larger number between two
5: numbers
Input : ………………………………………………………………………………………………………………………………………………………………
Process : ………………………………………………………………………………………………………………………………………………………………
Output : ………………………………………………………………………………………………………………………………………………………………
Problem Finding whether a number is odd or even
6:
Input : ………………………………………………………………………………………………………………………………………………………………
Process : ………………………………………………………………………………………………………………………………………………………………
Output : ………………………………………………………………………………………………………………………………………………………………
Problem Finding the perimeter of a square
7:
Input : ………………………………………………………………………………………………………………………………………………………………
Process : ………………………………………………………………………………………………………………………………………………………………
Output : ………………………………………………………………………………………………………………………………………………………………
An algorithm is a method to show the steps in solving a problem.
An algorithm is a step-by-step procedure for solving a problem.
Algorithm 1 algorithm to make a fruit juice
:
………………………………………………………………………………………………………………………………………………………………
………………………………………………………………………………………………………………………………………………………………
………………………………………………………………………………………………………………………………………………………………
………………………………………………………………………………………………………………………………………………………………
………………………………………………………………………………………………………………………………………………………………
………………………………………………………………………………………………………………………………………………………………
………………………………………………………………………………………………………………………………………………………………
Algorithm There are 183 students in a primary school. The principal has decided to hold
2: an inter-house sports meet dividing them into three the students into the three
houses – Olu, Nelum and Manel. Develop an algorithm to divide the students
into three houses.
………………………………………………………………………………………………………………………………………………………………
………………………………………………………………………………………………………………………………………………………………
………………………………………………………………………………………………………………………………………………………………
………………………………………………………………………………………………………………………………………………………………
………………………………………………………………………………………………………………………………………………………………
………………………………………………………………………………………………………………………………………………………………
………………………………………………………………………………………………………………………………………………………………
Algorithm
Flow Chart Pseudo Code
(Graphical representation) (Textual representation)
When an algorithm is presented in simple English terms it is called a pseudo code.
Pseudo codes are independent of a computer language. Pseudo codes can be
converted to any programming language instructions. Hence pseudo codes make
computer programming easier.