aboutsummaryrefslogtreecommitdiff
path: root/CST116-Ch7-Debugging/CST116-Ch7-Debugging-PseudoCode-Preston.txt
blob: 357922f08d2df185aba89237407037ee8a41e342 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
pseudocode for Ch7 debugging



begin main function

int age = 0

print 'enter your age'
input age

if age is equivalent to 1 
	print 'First birthday'
else if age >= 12 and <= 19
	print 'teenager'
else if age < 12
	print 'child'
else if age >62
	print 'senior'
else 
	print 'adult'

end main function