0% found this document useful (0 votes)
3 views4 pages

Step-by-Step Problem Solving Algorithms

The document outlines various problems and algorithms related to basic mathematical operations, such as dividing toffees, finding sums, and determining even or odd numbers. It emphasizes the importance of algorithms as step-by-step procedures for solving problems and introduces pseudo code as a simplified representation of algorithms. Additionally, it includes examples of algorithms for practical scenarios like making fruit juice and dividing students into houses.

Uploaded by

mohamed.shiras
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views4 pages

Step-by-Step Problem Solving Algorithms

The document outlines various problems and algorithms related to basic mathematical operations, such as dividing toffees, finding sums, and determining even or odd numbers. It emphasizes the importance of algorithms as step-by-step procedures for solving problems and introduces pseudo code as a simplified representation of algorithms. Additionally, it includes examples of algorithms for practical scenarios like making fruit juice and dividing students into houses.

Uploaded by

mohamed.shiras
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

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.

You might also like