Myers [MYE79] uses the following program as a self-assessment for your ability to specify adequate testing: A program reads three integer values. The three values are interpreted as representing the lengths of the sides of a triangle. The program prints a message that states whether the triangle is scalene, isosceles, or equilateral. Develop a set of test cases that you feel will adequately test this program. 4.2 Design and implement the program (with error handling where appropriate) specified in Problem 4.1. Derive a flow graph for the program and apply basis path testing to develop test cases that will guarantee that all statements in the program have been tested. Execute the cases and show your results. 4.3 Specify, design, and implement a software tool that will compute the cyclomatic complexity for the programming language of your choice. Use the graph matrix as the operative data structure in your design.
4.1 Myers [MYE79] uses the following program as a self-assessment for your ability to
specify adequate testing: A program reads three integer values. The three values are
interpreted as representing the lengths of the sides of a triangle. The program prints
a message that states whether the triangle is scalene, isosceles, or equilateral. Develop
a set of test cases that you feel will adequately test this program.
4.2 Design and implement the program (with error handling where appropriate)
specified in Problem 4.1. Derive a flow graph for the program and apply basis path
testing to develop test cases that will guarantee that all statements in the program
have been tested. Execute the cases and show your results.
4.3 Specify, design, and implement a software tool that will compute the cyclomatic
complexity for the
the operative data structure in your design.
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 2 images