Question: CLO4 Consider the following specification for a program. The program reads two inputs from the user: a character o and a decimal number n. The

 CLO4 Consider the following specification for a program. The program reads

CLO4 Consider the following specification for a program. The program reads two inputs from the user: a character o and a decimal number n. The character o specifies one of the supported operations: 'p' to calculate the square of the number n, and 's' to calculate the square root of the number n. The program returns the value of the result, or -1.0 in the case of applying the square root operation on a negative number n, or if the selected operation is not supported. Define the equivalence classes and boundary values and develop a set of test cases to cover them, For each test case, you must provide the input values and the output value. Assume that all user inputs are of the required types. Clearly state any other assumption that you make. To show the test coverage, fill a table with the following columns Test Case input Expected Valid Equivalence invalid Equivalence identifier Values outputs Classes and Classes and Bounds Bounds Covered Covered CLO4 Consider the following specification for a program. The program reads two inputs from the user: a character o and a decimal number n. The character o specifies one of the supported operations: 'p' to calculate the square of the number n, and 's' to calculate the square root of the number n. The program returns the value of the result, or -1.0 in the case of applying the square root operation on a negative number n, or if the selected operation is not supported. Define the equivalence classes and boundary values and develop a set of test cases to cover them, For each test case, you must provide the input values and the output value. Assume that all user inputs are of the required types. Clearly state any other assumption that you make. To show the test coverage, fill a table with the following columns Test Case input Expected Valid Equivalence invalid Equivalence identifier Values outputs Classes and Classes and Bounds Bounds Covered Covered

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!