Algorithm Development: by Neil A. Basabe
Algorithm Development: by Neil A. Basabe
Algorithm Development: by Neil A. Basabe
Development
by Neil A. Basabe
- procedure for solving a problem in terms of the actions to be executed
and the order in which those actions are to be executed. An algorithm is
merely the sequence of steps taken to solve a problem.
BEGIN
SET product = 0
INPUT num1 , num2
CALCULATE product = num1*num2
WRITE product
END
Pseudocode Example
- is a diagram that uses a set of standard graphic symbols to
represent the sequence of coded instructions fed into a computer, enabling it to perform
specified logical and arithmetical operations.
Flowchart
Example 1: Using a flowchart, develop an algorithm of a program that prompts the user
to input 4 Major Exams. Thereafter, the program will display “PASS” if average grade is
greater than or equal to 60 otherwise, it will display “FAIL”.