Flowcharts and Pseudocodes

Examples of Flow Charts
Pseudocodes.

—PseudoCode is a mixture of natural language and symbols, terms, and other features of the programmer. —It is programmer specific —Indentation of key blocks of instructions

Write an algorithm in pseudocode that finds the average of two numbers

  AverageOfTwo

  Input: Two numbers

1.Add the two numbers 2.Divide the result by 2 3.Return the result by step 2

  End

Write an algorithm to change a numeric grade to a pass/no pass grade.

  Pass/NoPassGrade

  Input: One number

1.if (the number is greater than or equal to 70)
then

    1.1  Set the grade to “pass”

else

    1.2   Set the grade to “nopass”

End if

2.Return the grade

  End

1
Liked it
One Response to “Flowcharts and Pseudocodes”
  1. Chris Bailie Says...

    On July 30, 2012 at 10:34 am

    Thank you for this.


Post Comment
comments powered by Disqus