Tuesday
June 18, 2013

Homework Help: programming

Posted by Sandy on Wednesday, April 7, 2010 at 11:07pm.

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

No one has answered this question yet.

Answer this Question

First Name:
School Subject:
Answer:

Related Questions

algebra - how do I help my son answer this question/ cary spent 1/3 of his class...
IT/210 - Assignment: Chapter 5 Programming Problems · Complete ...
Programming - Hi. I am taking a computer programming class (C++). I need some ...
it 210 computer programming - I need to generate an object oriented design for a...
BUSINESS PROBLEM SOLVING & PROGRAMMING - Using Flowchart and Pseudo Code ...
Math - I am having problems understanding how to solve problems like the ...
Microeconomics - ok so i must have not payed attention in class when we talked ...
Math - I'm doing linear programming and I'm having trouble with this one...
Algebra 2 - I'm doing linear programming and I'm having trouble with ...
reading - she is having problem with comprehension and I do help her a lot but ...

For Further Reading

Search
Members
Community