error checking (1 Viewer)

Winston

Active Member
Joined
Aug 30, 2002
Messages
6,128
Gender
Undisclosed
HSC
2003
error checking for what? data packets? :S
 

leeraff

Member
Joined
Sep 11, 2003
Messages
63
Gender
Male
HSC
2004
you list all the variables, then you have an output column. You use test data to put into the algorithm and record the result

e.g

Begin something
Get A
Get B
count = 1
While count <> 5
If A = B then
Print "a=b"
End If
increment count
EndWhile
End

for this algorithm you have the variables "A", "B" and "count"
thus your desk check will look like
note "...." = space

say you have these values A = 1, 2, 3, 4, 5 and B = 2, 1, 3, 4 , 5,
Deskcheck:
A...B...Count......Output
1...2......1.......... (blank)
2...1......2
3...3......3............... "a=b"
4...4......4................"a=b"
5...5......5................"a=b"
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Top