This preview shows page 1. Sign up to view the full content.
Unformatted text preview: , and Execute . 28. The following program seems to run, but does strange things with certain input values. Can you find the bug? " Main sum: *W "D d#1 num0: *L RK d#0 num : *L RK d#0 num : *L RK d#0 Main: L D sum,d D)RI num0,d DD num0,d D)RI num ,d DD num ,d D)RI num ,d DD num ,d ST ") sum,d D)R sum,d ST P *)ND 29. Correct the code in Exercise 28 and run the test plan outlined in the chapter. 30. Finish executing the test plan for the algorithm in the text that reads and sums three values. 31. Write an algorithm that reads in three values and writes out the result of subtracting the second value from the sum of the first and the third values....
View Full Document
This note was uploaded on 01/13/2011 for the course CSE 1550 taught by Professor Marianakant during the Fall '10 term at York University.
- Fall '10