programming
posted by Sandy .
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 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?"
What will be printed of the input is 0?
What will be printed if the input is 100?
What will be printed if the input is 51?
What will be printed if user enters "Winding"?
Is this design robust? If so, explain why. If not, explain what you can do to make it robust.
How many levels of nesting are there in this design?
Give one set of values that will test the normal operation of this program segment.
Defend your choices.
Give a set of test values that will cause each of the branches to be executed.
Give a set of test values that the test abnormal operation of this program segment.
I'm not understanding how to do this. Can someone please help me? Is there a web site one can go to to get assistance with these types of problems?
Thank you
Respond to this Question
Similar Questions

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 < … 
Help Help
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 … 
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 … 
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" … 
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 … 
Programming and algorithms
For each of the following problems, use the topdown modular approach and pseudocode to design a suitable program to solve it. 1. Input names of students from the user, terminated by ZZZ, and create a data file GRADES with records … 
Computer Programing & Logic Design
Submit pseudocode and a flowchart for the following programming exercise: Test Average and Grade Write a program that asks the user to enter five test scores. The program should display a letter grade for each score and the average … 
IT/210
Assignment: Chapter 5 Programming Problems · Complete Programming Problems 1 and 2. · Provide the analysis, pseudocode and test cases using the template submitted in Week 6 only (no diagrams are required). Chapter 5 Programming Problem … 
programming logic raptor
1. a.input names of students from the user, terminated by "zzz", 0,0,0, and create a data file grades with records of the following form: student (string), test1 (integer), test2(integer), test3 (integer) b. display the contents of … 
Java
Need help asap. You are given a list of students' names and their test scores. Design an algorithm that does the following: a. Calculates the average test scores. b. Determines and print the names of all the students whose test score …