• Want to help us with this year's BoS Trials?
    Let us know before 30 June. See this thread for details
  • Looking for HSC notes and resources?
    Check out our Notes & Resources page

Need help to desk check (1 Viewer)

mod35tbabe

New Member
Joined
Sep 17, 2004
Messages
13
Ok thought I understood how to do this but I dont.
I know ur sposed to have Input, Expected and Actual results but I dont know how to use that.
Heres an example:
Perform a desk check on the following algorithm to determine the output if the test data 7 was entered.
BEGIN MAINPROGRAM
read in num
loopcount = 1
REPEAT
loopcount = loopcount + 1
num = num - loopcount
print "#"
UNTIL loopcount > num
END PROGRAM
If anyone could help thanks
 

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

Top