Development of algorithms can be defined as logical steps that a program follows in order to solve a problem.
Various tools are used to depict algorithms. They include:
- Decision trees
- Decision tables
- Flowcharts and
- Pseudo codes
A pseudo code is a set of statements written in a human readable language but expressing the processing logic of a program.
- Pseudo codes are not executable by the computer
To design a good pseudocode, proceed as follows
Several keywords are often used to indicate common input, output, and processing operations.
Write a pseudo code that can be used to prompt the user to enter the diameter of a circle which will be used to calculate the perimeter and area of the circle
1. Write a pseudo code that can be used to prompt the user to enter two numbers, calculate the sum and average of the two numbers and then display the output on the screen
2. Write a structured algorithm that would prompt the user to enter the length and width of a rectangle, calculate the area and perimeter then display the result
3. Write a pseudo code for a program that can be used to classify people according to the age limit. If a person is more than 20 years; output “adult” else output “young person”
4. What factors do you consider when designing a good pseudo code
5. What is the importance of writing algorithms
Notes and Revisions > Computernotes > ComputerForm3 > 3. ELEMENTARY PROGRAMMING PRINCIPLES >
5. Development of Algorithm- pseudocodes
posted Aug 3, 2014, 3:39 AM by Maurice Nyamoti [ updated May 11, 2015, 9:20 AM ]
Flowcharts are used by programmers to:
Flowchart symbols are combined with short text clues which are a form of shorthand understood by programmers. Below is a list of symbols:
1-1 of 1