I am wodering if i answered these correctly or not?

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

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

2. What will be printed if the input is 100? Your grade is X you did great

3. What will be printed if the input is 51? Your Grade is you did OK

4. What will be printed if the user enters “Wingding”? how did you do

5. Is this design robust? If so, explain why. If not, explain what you can do to make it robust. No it is not robust; to make it robust there needs to be error messages that are displayed when the wrong integers or strings are imputed.

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

7. Give a set of values that will test the normal operation of this program segment. Any set of numbers from 0- 100 will allow this program to operate normally. 1,50,20,32,89,99,45

8. Defend your choices. Any number that is greater than or equal to 0 and less than or equal to 100 will generate a normal operation in this program.

9. Give a set of test values that will cause each of the branches to be executed.

10. Give a set of test values that test the abnormal operation of this program segment. Any number less than 0, such as -1, or any number over 100 such as 101 and anything that is not an integer.