Consider the following selection statement where X is an integer test score between 0 and 100

Declare X as an integer

Write “Please enter a number between 0 and 100.”

Input X

If (0 <= X and X < 49)

Write "You fail"

Else If (50 <= X and X < 70)

Write "Your grade is" X

Write "You did OK"

Else If (70 <= X and X < 85)

Write "your grade is" X

Write "You did well"

Else If (85 <= X and X < 100)

Write "your grade is" X

Write "You did great"

Endif

Write "How did you do?"

1. What will be printed if the input is 0?

2. What will be printed if the input is 100?

3. What will be printed is the input is 51?

4. What will be printed if the user enters “Wingding”?

5. Is this design robust? If so, explain why. If not, explain what you can do to make it robust.

6. How many levels of nesting are there in this design?

7. Give a set of values that will test the normal operation of this program segment. Defend your choices.

Give a set of test values that test the abnormal operation of this program segment