Information Systems 151 : Desk-checking

35 views3 pages

Document Summary

After a solution algorithm has been established, it must be tested for correctness. This step is necessary because most major logic errors occur during the development of the algorithm, and if not detected these errors can be passed on to the program. When selecting test data to desk check an algorithm, look at the program specification and choose simple test cases that are based on the requirements of the specification, not the algorithm. There are six (6) simple steps to follow when desk checking an algorithm: choose simple input test cases that are valid. Simple program: a program is required to read three numbers, add them together and print their total. Begin: read number1, number2, number3, total = number1 + number2+ number3, print total. Desk checking: choose two sets of input test data. The three numbers selected will be 10, 20 and 30 for the first test case and 40, 41 and 42 for the second. number1 number2 number3.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers

Related Documents

Related Questions