----------------------- Exercise #9 for CST8129 due November 9, 2005 ----------------------- -Ian! D. Allen - idallen@idallen.ca Remember - knowing how to find out an answer is more important than memorizing the answer. Learn to fish! RTFM! (Read The Fine Manual) Global weight: 1% of your total mark this term Due date: Before the end of your Lab period on Wednesday, November 9. The online deliverables for this exercise are to be submitted online via the T127 Linux Lab using the submit method described in the exercise description, below. No paper; no email; no FTP. Late-submission date: None. This exercise is due before the end of your Lab period on November 9. Exercise Synopsis: 1. Put your assignment label in a file named exercise09testplan.txt . 2. Write and append the PDL for Notes file while1.sh.txt to the file. 3. Write a "white box" test plan that specifies tests of Notes file while1.sh.txt. In your words, explain and justify each test. Explain how your tests demonstrate that the algorithm will work for any inputs, and how your test plan will execute every piece of code. Append your test plan to the exercise09testplan.txt file under the PDL. 3. Demonstrate your test plan to your instructor. 4. BONUS: Refer to the comment block at the end of while1.sh.txt. Write a test that will determine if the user's input number is an invalid octal number (such as 08 or 09) and print an error message. Note: The "let" statement returns a non-zero status 1 in two cases: (a) the value assigned to the variable is zero, or (b) one of the numbers is invalid (e.g. invalid octal 08, 09). Develop a "let" statement that returns a good status for all valid user input (even zeroes) and returns a bad status only for invalid octal input. Submission ---------- Submit the finished and labelled (with your Assignment Label at the top) Test Plan file for marking using the following Linux command line: $ ~alleni/bin/copy9 exercise09testplan.txt The copy9 program will copy the selected file to me for marking. You can copy the file more than once. Only the most recent copies will be marked. This exercise is due at the end of your lab period today. P.S. Did you spell all the label fields and file names correctly?