Wednesday
May 22, 2013

Homework Help: programming

Posted by Anonymous on Wednesday, June 11, 2008 at 4:53pm.

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

No one has answered this question yet.

Answer this Question

First Name:
School Subject:
Answer:

Related Questions

algebra - Solve the following equation: k2 + 4k = 0 By factoring and By using ...
Math - Please help me with the following problem, I have submitted the answer: ...
Geometry :( - this maths problem is wrecking my head.... 1.find the points of ...
mat/116 - Will someone please help me slove this problem? Use the elimination ...
Algebra.. please help - Please help. I have been trying to figure this problem ...
Math Urgent - (k+3)^2=(2k-1)^2=0 Please help me solve this equation or maybe one...
Public finance - Please help me understand the problem provided below and ...
Algebra--please help! - This one, I am very confused on and I have no idea how ...
Math - I still do not understand how to solve the following problem. Please show...
college algebra - solve the following inequality. write the answer in interval ...

For Further Reading

Search
Members
Community