Posts

Showing posts with the label Algorithm and Flowchart

Algorithm and Flowchart for SS2

Image
Algorithm and Flowchart for SS2 Definition Algorithm Algorithm can be defined as the set of rules and sequential steps that define how a particular problem can be solved in finite and ordered sequence. Function of Algorithms An algorithm generally takes some input, carries out a number of effective steps in a finite amount of time, and produces some output. Characteristics of Algorithms Every algorithm should have the following five characteristic features 1. Input 2. Output 3. Definiteness 4. Effectiveness 5. Termination Example1 : Write and algorithm to compute the area and circumference of a cycle given the diameter d. Use the formular Solution Step 1: Start Step 2: Get the diameter d Step 3: Compute Step 4: Compute Step 5: Compute Step 6: Display the results Step 7: Stop Example 2 : Write an algorithm that tells you how to wash dishes Solution Step 1: start Step 2: scrape food off dishes Steps 3: wash the dishes with soap and water Step 4: Rinse the dishes Step 5: Dry them Ste

Popular posts from this blog

BASIC Programming Language for SS1

Computer Ethics for JSS 2

Computing Devices I ( Pre-Computer to 19th Century) for SS1