天敌演员表刘新宇:谁能帮忙翻译一下这篇计算机文章?

来源:百度文库 编辑:中科新闻网 时间:2024/05/05 13:59:26
It should be possible to place in each of these modules tracing procedures which indicate the flow of program control and the intermediate results progressively calculated by the program instructions. Maintaining the errors which existed in the given example, the algorithms for each module (after inserting typical tracing statements) would be:

(Given that the purpose of this last module is to print the contents of all associated variables, it is hardly necessary to insert additional tracing instructions.)
The tracing output from the processing of, say, the third and fourth test records as shown below should, when compared to the expected results already calculated, point out the existence of several errors in the program:

From the trace output the programmer can ascertain that some modules work correctly each time (e.g., COMPUTE PAYABLE HOURS), some work incorrectly sometimes (e.g., COMPUTE GROSS PAY and COMPUTE TAX), and others give incorrect results but results which are consistent with the data which they have had to operate on (e.g., COMPUTE NET PAY and, presumably, the printing of the pay details).
Without this display of intermediate results, the programmer would merely see that the final pay results produced were incorrect for the data input but would not know where the incorrect processing was occurring.

应当可以在每个单元的追踪程序显示流量控制和计划中的计算结果逐渐指令计划. 坚持错误存在于特定的例子,每个单元算法(插入后追查典型发言): (因为在本上印刷的内容单元,是所有相关变数,不需要添加额外的指令追踪). 追查输出处理,例如第三和第四测试记录如下时应比预期成果已经计算出来,指出了存在的一些错误,在节目: 从追查产量程式可确定一些模块工作做好每次(如计算缴付时间),有些工作错误有时(例如,计算总薪酬及计算税)等人给予不正确的结果,但结果是符合数据所产生运作(如计算净薪酬,大概印刷薪资细节). 这中间,结果显示,编程只是看到最后付出的成果,是不正确的数据输入,但不知道是不正确的处理发生.