Help Help

posted by Anonymous

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


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

    Math assistance needed.

Respond to this Question

First Name

Your Answer

Similar Questions

  1. programming

    Can You Please help me understand how to do this and what i have to do to solve the problem.... Please!! Consider the following selection statement where X is an integer test score between 0 and 100. input X if (0 <= X and X < …
  2. Part 1

    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 …
  3. Algorithm

    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" …
  4. 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 "your grade is" X Output " you did OK" Else if …
  5. programming

    I am in IT/210 and am having problems with the entire class. But what I am stuck on is as follows: Consider the following statement where X is an integer test score between 0 and 100. input X if (<0=X and X<49) output = "you …
  6. Fundamentals of algorithm and logic

    3. Exercise: Peer Reviews of Currency Conversion Test Procedure • Perform peer reviews of two classmates’ Currency Conversion Test Procedures, which your instructor will place in your Individual forum on Day 1. •Complete the …
  7. Math

    Hey, I need your help! I have an input output table that I need the function rule for. The table is like this: Input: 0 Output: 25 Input: 100 Output: 35 Input: 200 Output: 45 Input: 300 Output: 55 Input: 400 Output: 65 PLEASE I NEED …
  8. Algebra

    I have an input / output machine I need a rule I can use for any value, like 10 or 100 input 1, output 3 input 2, output 6 input 3, output 12 input 4m output 24
  9. programming

    Consider the following input and output: INPUT: (((5 + 1) – (7 – 4)) / (11 – 8)) OUTPUT: 5 1 + 7 4 – – 11 8 - / 2.1. What variables do you need to consider for the input?
  10. Math

    Input: 100 Output 10 Input: 30 Output 3 Input: 70 Output 7 Input: 40 Output 4 Input: 50 Output 5 What is the equation to show the relationship between the input and the output?

More Similar Questions