it210_appendix_j_DONE - This design is not robust due to it...

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

View Full Document Right Arrow Icon
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" Endive Output "how did you do?" Course Assignments 1. Checkpoint: Algorithm Verification Answer the following questions about the information in Appendix J: O What will be printed if the input is 0? “You fail” O What will be printed if the input is 100? “How did you do?” O What will be printed if the input is 51? “You did ok” O What will be printed if the user enters ―Wingding ? No error, numbers only O Is this design robust? If so, explain why. If not, explain what you can do to make it robust.
Background image of page 1

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

View Full DocumentRight Arrow Icon
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: This design is not robust due to it allowing of entering numbers only. Therefore you cannot produce error statements. To make it robust you would need to add statements that can be added by the user like Wingding O How many levels of nesting are there in this design? One level of nesting in this design. IT 210 O Provide a set of values that will test the normal operation of this program segment. Defend your choices. O Provide a set of test values that will cause each of the branches to be executed. 0-49, 50-69, 70-84, 85-99 O Provide a set of test values that test the abnormal operation of this program segment. Entering in 101, strings such as Wingding will test abnormal operation of the program segment. IT 210...
View Full Document

Page1 / 2

it210_appendix_j_DONE - This design is not robust due to it...

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

View Full Document Right Arrow Icon
Ask a homework question - tutors are online