programming

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 "you did OK"

else if (70 <= X and X < 85)
output "you did well"

else if (85 <= X and X < 100)
output "you did great"

endif
output "how did you do?"

o What will be printed if the input is 0?
o What will be printed if the input is 100?
o What will be printed if the input is 51?
o What will be printed if the user enters ¿Wingding¿?
o Is this design robust? If so, explain why. If not, explain what you can do to make it robust.
o How many levels of nesting are there in this design?
o Give a set of values that will test the normal operation of this program segment. Defend your choices.
o Give a set of test values that will cause each of the branches to be executed.
o Give a set of test values that test the abnormal operation of this program segment.

1. 👍
2. 👎
3. 👁

Similar Questions

1. Calculus

If f(x) is differentiable for the closed interval [−1, 4] such that f(−1) = −3 and f(4) = 12, then there exists a value c, −1< c < 4 such that a)f'(c)=3 b)f'(c)=0 C)f(c)=-15 d)f(c)=3 I understand that you are supposed to

2. Science

Why it's so important to have one set of chemical symbols in the world ? Please no hard answers an easy one for me to understand. Thank You !!! :) PS: by the way this a qs. for my science homework I just don't understand. :) :) :)

In 3–5 sentences, discuss special considerations for using blogs and wikis in research. I don't understand this question good can you guys please help me understand what i am sopose to do.

4. English

1. I still could not understand him. 2. I still don't understand. 3. He was still waiting for her . 4. He has still been looking for the kid. ----------------------------- Is the position of 'still' correct? Are they all

1. Language. Mrs Sue pls check

Which sentence connects an element of a story to a theme? A. The symbol of the butterfly helps readers understand the importance of change in a person's life. B. The story takes place during the early 1900s and helps readers

2. Math

Simplify. (16/81)^-3/2 I don’t quite understand what to do with this problem can someone please explain it to me so I understand it

3. Chemistry

In which aqueous system is PbI2 least soluble and why? [A] 0.5 M HI [B] 0.2 M HI [C] 0.8 M KI I understand that I- is the common ion. I don't understand why [C] 0.8 M KI is the correct answer.

4. math, Jay

How do these fractions turn into the following fractions. 1/3=10/30 1/5=6/30 1/10=3/30 There is a fundamental fact of math that says if you multiply anything by one , nothing changes. but 1 = 3/3 = 10/10 etc. So if you have a

1. Number the stars Ch.3 Questions

1. What point of view is number the stars? 1st person 3rd person 2. Who is telling the story An outside narrator Annemarie Annemarie's Mom Ellen 3. How does the narrators point of view influence how events are described? It allows

2. Math

Which of these is an irrational number. A. √150 B. √441 C. √200 D. √250 Ok I worked it out like this √150= 12.24 (12) √441= 21.07 (21) √200= 14.14 (14) √250= 15.81 (16) Ok I can't figure this out. What exactly does

3. Psychology

How have you used the scientific process (unsystematic observation, building theories, and evaluating propositions) in your life to better understand your personality? Provide an example in your response. What does this question

4. Math

I'm using the quadratic equation and I understand how to use it, but the format my text book gives the answers in is what I don't understand. If I have (2+/-Sqrt(8))/2 I know that x can either equal 2.41 or -0.14 However, my