Professional Documents
Culture Documents
Pseudocode SR v2
Pseudocode SR v2
Take note of the following rules for each of the items below.
Approved Notation for Pseudocode
output NAME
output “Bob” # very common
output AGE
Pseudocode
COUNT = 0
TOTAL = PRICE + TAX
Pseudocode
if S = “Hello” then
output S
else
output “Goodbye”
end if
Pseudocode
This algorithm will calculate the area of a circle given the radius.
Variables: AREA, RADIUS, PI
PI = 3.14159 //set value of pi accurate to 5 decimal places
BEGIN
input RADIUS
AREA = PI * RADIUS **2
output AREA
END
Notice: Input – Processing – Output (IPO Model)
Review Questions
1. What is pseudocode?
2. What are the approved notations for
conventions, variable names, assignment,
and output?
3. Name the standard mathematical operators
used in programming.
4. What is the pseudocode notation for
comparing information?
Questions Continued…