it210_appendix_j_DONE

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

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" 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.

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: 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

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern