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

Quickly
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 ospecifies one of the supported operations: 'p' to calculate the square of the number 1, 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
Get step-by-step solutions from verified subject matter experts
