Easy Design

All About Design

Archive for the ‘web’ tag

Design Verification Test

without comments

design verification test
Algorithm Verification help please!?

consider the following selection statement where X is a test score integer between 0 and 100. input X if (0 <= X and X <49) output "you fail" else if (50, + X and X <70) output "is the rating X output "you did OK" else if (70 <= X <X 85) output "your grade is" X output "did well" else if (85 <+ X and X <100) output "your grade is" X output "you did great" endif output "How'd it go?" What will be printed if the input is 0, 100, 51, and wingding? Is this rugged and why? If you can do to make it robust? How many levels of nesting found in this design? Have a set of values ​​that will test the normal functioning of this segment of the program. Give a set of values ​​that will test each one of these branches to be executed. Give a set of test values ​​that test the abnormal operation of this program segment.

1. you fail, nothing printed its degree is x, you did it right, the error condition 2. no, not robust, be sure that all input values ​​are integers, and handle the case of the least score 0, equal to 100, and more than 100 3. level 4. any value between 0 and 100 5. any value between 85 and 100 6. below zero, more than 100, or an integer.

Part 3 – Accelerating Verification Testing