it210_appendix_j

# it210_appendix_j - robust. This is not robust due the...

This preview shows pages 1–2. Sign up to view the full content.

Axia College Material Appendix J Algorithm Verification Consider the following selection statement where X is an integer test score between 0 and 100. input X if (0 <= X and X < 49) output "you fail" else if (50 <= X and X < 70) output "your grade is" X output "you did OK" else if (70 <= X and X < 85) output "your grade is" X output "you did well" else if (85 <= X and X < 100) output "your grade is" X output "you did great" endif output "how did you do?" What will be printed if the input is 0 ? “ you fail” What will be printed if the input is 100 ? “ how did you do “ What will be printed if the input is 51 ? “ you did ok “ What will be printed if the user enters ‘ WINGDING “? Will terminate Is this design robust? If so, explain why. If not, explain what you can do to make it

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: robust. This is not robust due the entering of numbers only which will not allow for error statements. How manny levels of nesting are there in this desighn ? none Provide a set of values that will test the normal operation of this program segment. Defend your choices. 0-49, 50-69, 70-84, 85-100 Provide a set of test values that will cause each of the branches to be executed. 5 to test the first section,55 to test the second, 80 to test the third, 90 for the last IT 210 Provide a set of test values that test the abnormal operation of this program segment. For input below 0 it can be -10 and say 110 for anything above 100 IT 210...
View Full Document

## This note was uploaded on 05/16/2011 for the course IT 210 taught by Professor Josephpillera during the Spring '10 term at University of Phoenix.

### Page1 / 2

it210_appendix_j - robust. This is not robust due the...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online