0% found this document useful (0 votes)
33 views

Finding Error in Pseudocode

The document describes a 7-step process for error trapping when solving a problem: 1) select test data, 2) calculate the result manually, 3) check for obvious errors, 4) rewrite the program with corrections, 5) enter the test data, 6) compare the manual and program results, 7) repeat the process until no errors remain.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
33 views

Finding Error in Pseudocode

The document describes a 7-step process for error trapping when solving a problem: 1) select test data, 2) calculate the result manually, 3) check for obvious errors, 4) rewrite the program with corrections, 5) enter the test data, 6) compare the manual and program results, 7) repeat the process until no errors remain.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

1.

Total=0
2. Counter=0
3. Repeat
4. Repeat
5. Input num
6. Until num>=0
7. Total=total+num
8. Counter=counter+1
9. Until num=0
10. Average=total/(counter-1)
11. Print avg

How to solve error trapping

1. Select test data(depends upon question)


2. Calculate the result manually
3. Check for the obvious error
4. Rewrite the program with the correction
5. Know enter the test data
6. Compare manually calculated result with the program result
7.

You might also like